On 04.12.2010 11:38, Chetan Crasta wrote:
I hate to point this out, but it would be unfortunate if those reading
this thread consider this an example of good use of CSS and HTML:
http://www.gunlaug.no/contents/wd_additions_36.html
The page has 9 (yes 9!) wrapper or container divs that serve no
semantic purpose. Not to mention the empty 'spacer' div, the 0-height
hr element, the mixing of block and inline child elements in a div,
the huge number of&nbsp entities and using three periods instead of
&hellip .

Yes, it would be a shame... :-)
<http://www.gunlaug.no/contents/wd_additions_26.html>
...but that's how I used to tame old browsers back in the days, and it still works so I haven't bothered to upgrade it and lose control over same old browsers until they are gone - for good.

The empty spacer divs (with comments) are one of the most robust ways to force some of the old browser versions still in circulation to behave as if they understood min-width/min-height without upsetting new browsers, so they are not going anywhere - soon.

As for the &nbsp and tripple periods ... sure we're looking at the same source-code? I use numerical entities - put there by my good friend HTMLTidy[1], and there are actually a few '&#160;' missing in that page. I don't like single words on last line in paragraphs or single-letter words like "I" at the end of lines, and see no point in adding elements for styling to achieve this since that both adds weight and fails in browsers that don't support CSS.


My entire site with its several hundred articles/pages is a live test-bed for browsers, and contains many elements and styles that are not supposed to make sense to anyone but me. If any of that confuses other web designers / coders, so be it - can't be helped. The worst of it can be found under "browser targeting CSS hacks"[2], in case anyone wants to see some really bad use of CSS styling.

As end-user I often surf with no script or CSS support, so obviously I at least want my own pages to present their content well under such conditions. So add me to the "insignificant" number of problematic end-users that actually know how to use their browsers and how it all works, and be done with it.

regards
        Georg

[1] http://www.gunlaug.no/contents/wd_1_07.html
[2] http://www.gunlaug.no/contents/wd_additions_42.html
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to