HighDots Forums  

Class names containing layout-specifics

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Class names containing layout-specifics in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Philipp Lenssen
 
Posts: n/a

Default Class names containing layout-specifics - 09-05-2003 , 03:18 AM






This is by far the worst use of CSS I've seen:

<font class="BLACK10PX" size="1" face="arial, geneva">...

(Sad thing, I have to edit those files.)

Why do people use class names containing layout-specifics?

--
Google Blogoscoped
http://blog.outer-court.com

Reply With Quote
  #2  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Class names containing layout-specifics - 09-05-2003 , 04:40 AM






On Fri, Sep 5, Mikko Rantalainen inscribed on the eternal scroll:

Quote:
div class="red f10pt bolder underlined"
(with suitable style sheet)
vs.
div style="color: red; font-size: 10pt; font-weight: bolder;
text-decoration: underline;"

Both are bad,
Exactly.

Quote:
but I feel that the style attribute is worse.
I'm not sure that I care. Somewhere there has to be a threshold,
below which there's no longer any point in discussing the difference
beween bad and bad.

And that's before we even start to talk about the inadvisability of
specifying pt sizes for a screen display (assuming this isn't a
print-only stylesheet - but then, what use is "red" going to be on a
monochrome printer?).

all the best


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.