On Tue, 18 Jan 2005 13:31:33 -0500, Harlan Messinger
<hm*******************@comcast.net> wrote:
yawnmoth wrote:
Chris Leipold wrote:Try using a block element rather than an inline element.
that won't work, for my purposes :(
Yet the clear property only applies to block-level elements, per the
specification.
That depends (or should at least).
From CSS1
5.5.26 'clear'
Value: none | left | right | both
Initial: none
-> Applies to: all elements
Inherited: no
Percentage values: N/A
From CSS2.1 (and it was in CSS2 already)
9.5.2 'clear'
Value: none | left | right | both | inherit
Initial: none
-> Applies to: block-level elements
Inherited: no
Percentages: N/A
Media: visual
CSS1 originally defined some rules for how to design future versions of
CSS in a "forward compatible" way that would not jeopardize rendering of
old www designs, based on CSS1, in later browser versions.
Hypothetically the OP may have tried his best to write a completely
legit CSS1 style sheet, only to find that the current crop of "modern"
browsers are not CSS1 compatible in some area where they should have
been.
Also there is an oddity in CSS2.1 as it says that a value for 'clear'
can not be 'inherited' but still it specifies 'inherit' as a correct
'clear' property value.
So if an already computed value for clear can not be inherited, from
where shall the next 'clear: inherit' get its value assignment?
It seems that early CSS1 rules are like laws, they only apply to those
who care about them.
--
Rex