My Problem is
Text is not wrapping when it at the end of the line it break through the border of the div
My CSS:
html,body {
margin:0;
padding:0;
height:100%;
background:gray;
font-family:arial,sans-serif;
font-size:small;
color:#666;
}
h1 {
font:1.5em georgia,serif;
margin:0.5em 0;
}
h2 {
font:1.25em georgia,serif;
margin:0 0 0.5em;
}
h1, h2, a {
color:orange;
}
p {
line-height:1.5;
margin:0 0 1em;
}
div#container {
position:relative;
margin:0 auto;
width:800px;
height:100%;
}
.dsLeft{
background:url(img/ds.png);
position:relative;
margin:0 auto;
height:auto !important;
height:100%;
min-height:100%;
float:left;
width:20px;
}
.dsRight{
background:url(img/ds2.png);
position:relative;
margin:0 auto;
height:auto !important;
height:100%;
min-height:100%;
float:left;
width:20px;}
div#content {
margin:0 auto;
width:760px;
float:left;
background:url(img/bgw.png);
height:auto !important;
height:100%;
min-height:100%;
}
Source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CSS Layout - 100% height</title>
<link rel="stylesheet" type="text/css" href="layout1.css" />
</head>
<body>
<div id="container">
<div class='dsLeft' >
</div>
<div id="content">
<p>sdaddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddssssssssssssssssssssssssssssasdasssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssadasd</p>
</div>
<div class='dsRight' id='fullH'>
</div>
</div>
</body>
<body>
</body>
</html>
THX