![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This page shows 3 divs side by side surrounded by a wrapper, but the wrapper thinks there's nothing in it, so its collapsed at the top. How do I get the wrapper to expand around the divs ? http://www.cardini.tv/test/test.htm #p1{float:left;width:25%;border:solid 1px;} #p2{float:left;width:25%;border:solid 1px;} #p3{float:left;width:40%;border:solid 1px;} #w{border:solid;width:90%; margin:auto;} red |
#3
| |||
| |||
|
|
On Sat, 30 Oct 2004 05:27:58 GMT, red <groups2 (AT) reenie (DOT) org> wrote: This page shows 3 divs side by side surrounded by a wrapper, but the wrapper thinks there's nothing in it, so its collapsed at the top. How do I get the wrapper to expand around the divs ? http://www.cardini.tv/test/test.htm #p1{float:left;width:25%;border:solid 1px;} #p2{float:left;width:25%;border:solid 1px;} #p3{float:left;width:40%;border:solid 1px;} #w{border:solid;width:90%; margin:auto;} red 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 ? |
#4
| |||
| |||
|
|
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 ? |
#5
| |||
| |||
|
|
On Sat, 30 Oct 2004 06:04:54 GMT, red <groups2 (AT) reenie (DOT) 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. |
#6
| |||
| |||
|
|
This page shows 3 divs side by side surrounded by a wrapper, but the wrapper thinks there's nothing in it, so its collapsed at the top. |
#7
| |||
| |||
|
|
This page shows 3 divs side by side surrounded by a wrapper, but the wrapper thinks there's nothing in it, so its collapsed at the top. How do I get the wrapper to expand around the divs ? http://www.cardini.tv/test/test.htm #p1{float:left;width:25%;border:solid 1px;} #p2{float:left;width:25%;border:solid 1px;} #p3{float:left;width:40%;border:solid 1px;} #w{border:solid;width:90%; margin:auto;} |
![]() |
| Thread Tools | |
| Display Modes | |
| |