lin-club  

Re: [Haifux] hifux site's design

Ilya Konstantinov
Sat, 15 Sep 2001 12:18:55 -0700

On Sat, Sep 15, 2001 at 10:27:05PM +0300, Nadav Har'El wrote:
> CSS, Cascading Style Sheets, is a standard (look at w3c's site for a complete
> document on it) for defining how HTML elements should look like, e.g., you
> can say that all H1 headings should be 1-inch tall and red, that all
> paragraphs should be 500 pixels wide and indented, that lists should use
> some gif image instead of the usual bullet, and much much more. This way,
> the site looks exactly like you want it to look in all modern graphical
> browsers (both Mozilla and IE have almost complete support for CSS 1, and
> some of CSS 2; Netscape 4 supports CSS 1 but is somewhat buggy), but textual
> browsers (such as lynx), and more importantly - browsers for the vision
> impaired (blind, dyslexic, etc.) will know exactly what the author meant,
> since the author uses H1, LIST, etc., rather than amorphous tables and
> graphics.

Right said, Nadav.

More over, with CSS, you can avoid the hell of layouting with tables by
using positionable boxes. The trouble with all this is while it'll look
great on Mozilla / Netscape 6, Internet Explorer and Konqueror, it'll
be totally broken on Netscape 4. I usually urge people to forget
Netscape 4 as if it was a bad dream, but some Linux users with slower
machines might complain.

BTW, a small tip - if you're designing for Konqueror / Mozilla, and all
of a sudden simple CSS properties misbehave, make sure you have a
strict DTD on top of the document, e.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>

Otherwise, some horrible Netscape 4 compatibility features would be
triggered.

(BTW, Nadav, the FONT tag and the ALIGN attribute are deprecated :)
 

--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://linuxclub.il.eu.org)
To unsub send an empty message to [EMAIL PROTECTED]