Jack <mrdemeanour@nospam.jackpot.uk.netwrote:
Quote:
Quote:
>CSS2 offers no method that was intended, or is suitable to create
>good quality www layouts. The various CSS2 methods that are currently
>used to try and circumvent this shortcoming all have serious flaws,
>amongst them floating is by far the worst.
|
>
>Do you argue, then, that absolute positioning (for example) is less
>harmful?
|
Again: no single qualifier can be attached to the various methods
currently used, they all have their own mix of drawbacks.
A rundown of some of the problems with the currently used methods to
create so called "CSS layouts":
Floated layout boxes
-------------------------------
1) Do not contain their content properly (1).
2) Not in the flow, block level elements adjacent to a float act as if
the layout box isn't there.
3) Floats inside a floated "layout box" influence behaviour of content
in other layout boxes.
4) The content order cannot be changed independently from the position
on screen.
5) Many people struggle to understand the ridiculously complex float
rules and resulting behaviour.
6) As a result of the complex float rules many browsers have float bugs,
the resulting browser inconsistencies cause yet more user frustration.
ABS Positioned layout boxes
-------------------------------------------
1) Do not contain their content properly (a).
2) Not in the flow, footers are impossible.
3) Content in a positioned box cannot be allowed to wrap if there is
another layout box beneath it since it would be clipped, obscure other
content, or generate a scrollbar. The ability for content to wrap is an
essential quality for text content.
CSS Tables
------------------
Short of the semantic issue, CSS tables have all the drawbacks of HTML
tables:
1) Reflows when embedded content loads in table-layout:auto mode.
2) Do not contain their content properly (a) in table-layout:fixed mode.
3) Grid remains rigid regardless of the viewport width (b).
4) The content order cannot be changed independently from the position
on screen.
5) Not supported by IE.
(a) Containing contents, there is no acceptable overflow behaviour:
1) In document scroll bars (usability nightmare).
2) Part of the content is clipped (content partially disappearing is
unacceptable).
2) Part of the content overflows into the adjoining space (thereby often
obscuring other content).
(b) The CSS2 "handheld" media property was ill conceived, it made
unwarranted assumptions about the viewport width on mobile devices, and
fails to cater for a-typical viewport widths on non mobile devices.
--
Spartanicus