RE: [WSG] Width defaulting to 100%?

2005-10-03 Thread Tatham Oddie \(Fuel Advance\)
Kara, Block elements (like div) always expand to the full width by default. By the sounds of it you're after an inline element, so either: A) use a span instead or B) set display:inline; on the DIV You might find it helpful to read up on the difference between block and inline elements.

Re: [WSG] Width defaulting to 100%?

2005-10-03 Thread Daniel Nitsche
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

RE: [WSG] Width defaulting to 100%?

2005-10-03 Thread Kara O'Halloran - Eduka
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

Re: [WSG] Width defaulting to 100%?

2005-10-03 Thread Andy Kirkwood | Motive
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]