[thelist] Moving to CSS for layout and design (was: CSS layout site check)

Mark Howells mark at mountain.ch
Tue Dec 11 09:57:01 CST 2001


> Von: Erik Mattheis <gozz at gozz.com>
> Betreff: Re: [thelist] Moving to CSS for layout and design (was: CSS  layout
> site check)
>
> About fixing tables taking forever ... I'd guess that you don't code
> by hand, but edit your HTML by hand every once in a while ... every
> HTML editor I use nicely points out my errors

I don't use HTML editors, as I find it quicker to write the code by hand
than to rewrite the code to make it XHTML compliant. That said, I don't
build static sites very often as I prefer to use SSI and server-side caching
to reduce the overall file size of the site.

>> By changing the code on one simple page
>> in my current project from HTML tables to CSS, I reduced the file size by
>> over 50% at the first "sweep".
> 
> Sure, but maybe the 3% of that 50% that are table tags should stay
> ... case in point: did you look at the stylesheet for the posted URL?
> A lot larger filesize wise than the table tags which would be
> required on the four pages of the site ... and on top of that, it
> looks like crap in NN.

If you're commenting on http://www.mark.ac/web/resources.php, then it does
indeed look crap in NN - because my CSS style sheet isn't recognised in that
browser. That's my decision so that visitors will be encouraged to upgrade
to a newer browser. If they don't? Fine, but the styling in the current
version of the site will be removed to stop their browsing experience from
being impaired.

My site isn't the best example, as the CSS features are more of a
development feature than anything else. I know that the CSS file is larger
than 4 pages of HTML tables, but if my site was static and not driven from a
database with PHP, it would contain over 700 pages. The CSS file, which is
currently about 6kb, loads just once when it will be understood by the
browser. If not, it doesn't load. The rest of the code works back to NN1.0
(http://www.dejavu.org/) because it uses standard, unhacked HTML.

Regards
Mark Howells
Working in a Winter Wonderland
http://www.mark.ac





More information about the thelist mailing list