red wrote:
Neal wrote:
On Sat, 30 Oct 2004 06:04:54 GMT, red <gr*****@reenie.org> wrote:
Neal wrote:
Float literally means "move it to the side of the legitimate
content." But you don't have any legitimate content. So the w div is
virtually empty.
So how do I put a border around the three divs ?
Havce something as actual not-positioned-out-of-it content in the div.
Preferably at the end.
How do I do that ? What are you talking about ? I honestly can't figure
out what that is supposed to mean. I really really really would like to
know. I want the container to expand to surround the content of the
divs. Is this possible at all ?
Try running this modified version. Comments included.
--
Gus
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>test.php</title>
<style type="text/css">
#p1{float:left;width:25%;border:solid 1px;}
#p2{margin-left:25%;width:25%;border:solid 1px;}
#p3{float:right;width:40%;padding-right:9%;border:solid 1px;}
#w{border:solid;width:90%; margin:auto;}
</style></head>
<body>
<div id="w">
<div id="p1">
some text
</div>
<div id="p3">
some text<br><br>
This cannot be done as in *test.html* because float:left; on the three
divs takes them out of flow and therefore the wrapper is empty.<br><br>
I changed the order of the divs in the html to place the floated divs
first and the static (long one) last.<br><br>
I'm fudging it here with float:left; on the 1st and float:right; on the
3rd and NO float on the 2nd (middle) which gives the wrapper height.<br><br>
It works best with fixed values instead of %ages.<br><br>
I added padding-right value to simulate the required width (apparent)
and position as required.<br><br>
</div>
<div id="p2">
A whole lotta text and some and some more.A whole lotta text and some
and some more.A whole lotta text and some and some more.A whole lotta
text and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more.A whole lotta text and some and some more.A
whole lotta text and some and some more.A whole lotta text and some and
some more.A whole lotta text and some and some more.A whole lotta text
and some and some more. </div>
</div>
</body></html>