|
Posted by Ben C on 12/28/07 22:51
On 2007-12-28, dorayme <doraymeRidThis@optusnet.com.au> wrote:
[...]
> I looked into these remarks of yours yesterday in another
> connection and I think I learnt something. I was tinkering with
> and advancing my little story telling project at
> http://netweaver.com.au/floatHouse/
One small inaccuracy or ambiguity there: you say 'there is a way to
force inline (and other) materials to clear the bottom of floats: via
the css instruction called "clear"'.
Since CSS 2.1, you can only actually set clear on block-level things
(although I think in CSS 2 you could set it on inlines). Maybe by "via"
you meant the inlines go in another block-level element on which you've
set clear, which is what the examples show, but perhaps it's not, er,
clear.
An exception is made for <br> which is display: inline and on which the
clear property does work in browsers. Although technically a violation
of CSS 2.1, it would be a bit strange to allow the HTML clear attribute
but not the CSS clear property so I think that's why they do it.
Navigation:
[Reply to this message]
|