This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > July 2004 > does a floated element require a fixed width to work?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author does a floated element require a fixed width to work?
The Master

2004-07-26, 7:16 pm

I ask this because I have a bread Crumb navigation on this new design
layout:

http://www.goldhilmedia.com/showbug/finished.html

(the section I'm referring to is Main Category --> Sub Category 1 -->
Sub Sub Category, which is located right below the top navigation)
floats as intended in Opera 4-6, Ie5.x, Ie 6.0, Firefox, Safari 1.2,
Ie5.2mac, NN6x, Moz 1.0, and Moz 1.4. However in opera 7.5 it will not
float the bread crumb unless I specify a width on the UL element. This
causes a problem because it no longer expands and contracts as the
text dictates; on Further note specifying a width on the UL element
causes it to not float in Safari 1.2 or Opera 4-6, unless I specify a
width on it's containing div. But then I have to make the first UL in
the list 100%, and each subsequent a different length to make it work,
in other words more code bloat and not effective if the bread crumb
exceeds more than 2 subsections.

So which Browser or Browsers is floating properly? Opera 7.5, which
requires a specified width or the others, which don't require a
specified width?

If Opera 7.5 is the one getting it wrong how can I modify my CSS to
compensate for Opera 7.5 (preferably with out a hack, in other words
is their some default property on UL elements in opera 7.5 that is
causing them not to float)?

Thanks,
The Master
Spartanicus

2004-07-26, 7:16 pm

tgross@goldhil.com (The Master) wrote:

Kindly place questions in the message body, corrected this once:

>does a floated element require a fixed width to work?


It does if the UA adheres to CSS 2.0 rules, not if it adheres to CSS 2.1
float rules (or if it's IE).

--
Spartanicus
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews