I noticed that Message-ID: <1g**************************@mail.dot> from
JaNE contained the following:
Mmm, not quite. The class should ideally unambiguously describe the
section of the document e.g class="product_table_item"
it is off-topic here, but, why on earth (if you like) not to describe
some formating with css? assume you have some form and after validating
data, you want to show that something is wrong with red background?
(disgusting, but if someone like it...)
It is possible to define a lot of css classes to cover every eventuality
arial_bold, arial_bold_red, arial_itallic_bold_red and so on. Then
whenever you wanted to style something pick from the list. But it's a
terrible idea. You would have no idea what type of elements these
classes are being applied to and changing the look of a site would still
involve editing every single site page!
The idea of CSS is to promote consistency. Therefore it is better to
name the classes after the parts of the document they cover, e.g.
preamble, chapter_heading, chapter_subheading etc. Then if you decided
to change the look of one particular element, simply change the CSS and
it is changed throughout the site. If you want a high contrast version,
simply change the CSS, no problem.
See
www.csszengarden.com
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs
http://www.ckdog.co.uk/rfdmaker/