[thelist] Side-by-Side Divs
Stephen Caudill
SCaudill at municode.com
Wed Jun 18 14:11:54 CDT 2003
djinn at darkdesigns.org bespaketh on Wednesday, June 18, 2003 2:51 PM:
> I would like to create a bunch of divs that will go across the screen
> when there is room, but go below each other when there isn't room,
> like text flow. I don't want a horizontal scrollbar.
>
>> From what I've read, it seems like I need to use Float: left
> for this to
> happen, but I believe that using Float requires that you specify a
> width for the div. Is this true? I'd rather not do that.
>
> What is the best way to accomplish this? I googled, but couldn't find
> a good tips page for this.
>
> Thanks.
> Jean Peterson
Jean,
by default a div has 100% width. If you don't specify a width, the div takes up the entire width of the screen. Why wouldn't you want to specify a width? I'm confused.
-stephen caudill
http://www.mechavox.com
More information about the thelist
mailing list