HighDots Forums  

what makes a div expand ?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss what makes a div expand ? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
red
 
Posts: n/a

Default what makes a div expand ? - 10-30-2004 , 01:27 AM






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

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: what makes a div expand ? - 10-30-2004 , 01:40 AM






On Sat, 30 Oct 2004 05:27:58 GMT, red <groups2 (AT) reenie (DOT) org> wrote:

Quote:
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.


Reply With Quote
  #3  
Old   
red
 
Posts: n/a

Default Re: what makes a div expand ? - 10-30-2004 , 02:04 AM



Neal wrote:

Quote:
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 ?


Reply With Quote
  #4  
Old   
Neal
 
Posts: n/a

Default Re: what makes a div expand ? - 10-30-2004 , 02:10 AM



On Sat, 30 Oct 2004 06:04:54 GMT, red <groups2 (AT) reenie (DOT) org> wrote:

Quote:
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.


Reply With Quote
  #5  
Old   
red
 
Posts: n/a

Default Re: what makes a div expand ? - 10-30-2004 , 02:21 AM



Neal wrote:

Quote:
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.
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 ?


Reply With Quote
  #6  
Old   
David Dorward
 
Posts: n/a

Default Re: what makes a div expand ? - 10-30-2004 , 03:12 AM



red wrote:

Quote:
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.
http://www.positioniseverything.net/easyclearing.html

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #7  
Old   
Jan Roland Eriksson
 
Posts: n/a

Default Re: what makes a div expand ? - 10-30-2004 , 06:35 AM



On Sat, 30 Oct 2004 05:27:58 GMT, red <groups2 (AT) reenie (DOT) org> wrote:

Quote:
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;}
<http://www.css.nu/exp/layer-ex3b.html>
<http://www.css.nu/exp/layer-ex3c.html>
<http://www.css.nu/exp/layer-ex3d.html>
<http://www.css.nu/exp/layer-ex4a.html>

--
Rex




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.