effpeetee
06-25-2008, 04:52 PM
This is about as simple as it comes, but I still don't get it.
Why is div three underneath? I am obviously missing something basic here. Three columns with plenty of space but refuse to go laterally.:mad:
It's not just the code that I need. I need to know why.
Frank
<!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" lang="en">
<head>
<title></title>
<style type="text/css">
html body{
height:100%;
width:100%;
}
#one{
float:left;
height:500px;
width:200px;
border:2px solid red;
}
#two{
margin:0 auto;
height:500px;
width:200px;
border:2px solid green;
}
#three{clear: both;
float:right;
height:500px;
width:200px;
border:2px solid black;
}
</style>
</head>
<body>
<div id="one">11111111111111</div>
<div id="two">22222222222222</div>
<div id="three">33333333333333</div>
</body>
</html>
Why is div three underneath? I am obviously missing something basic here. Three columns with plenty of space but refuse to go laterally.:mad:
It's not just the code that I need. I need to know why.
Frank
<!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" lang="en">
<head>
<title></title>
<style type="text/css">
html body{
height:100%;
width:100%;
}
#one{
float:left;
height:500px;
width:200px;
border:2px solid red;
}
#two{
margin:0 auto;
height:500px;
width:200px;
border:2px solid green;
}
#three{clear: both;
float:right;
height:500px;
width:200px;
border:2px solid black;
}
</style>
</head>
<body>
<div id="one">11111111111111</div>
<div id="two">22222222222222</div>
<div id="three">33333333333333</div>
</body>
</html>