Hi guys,
I have 2 divs inside a container.
1: a relatively positioned div to contain and position an image
2: another div, absolute position, to contain a submenu.
Image on left, menu on right.
For some reason, both divs are expanding horizontally to take up all the
available space, even when
.
Thanks,
Tatham Oddie
Fuel Advance - Ignite Your Idea
www.fueladvance.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Kara O'Halloran - Eduka
Sent: Tuesday, 4 October 2005 2:39 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] Width defaulting to 100
Hi Kara,
Check out tip 1 in the sitepoint Top Ten CSS Tricks article:
http://www.sitepoint.com/article/top-ten-css-tricks
As mentioned, block level elements default to 100% width unless
specified, so one (of many) ways to change this, would be to specify
display: inline;.
Cheers,
Daniel
You're a legend - thanks :)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tatham Oddie (Fuel
Advance)
Sent: Tuesday, 4 October 2005 1:00 PM
To: wsg@webstandardsgroup.org
Subject: RE: [WSG] Width defaulting to 100%?
Kara,
Block elements (like div
Hi Kara,
Unlike a td, a div will expand to fill the available space (and not the
content it contains), if a width is not specified.
To achieve the layout you describe, you will need to:
-set widths on the divs, and/or
-set left or right margins to accommodate both divs, for example if div [A]