W3C home > Mailing lists > Public > www-style@w3.org > June 2001

Re: Classes

From: David Bindel <chaosdb@yahoo.com>
Date: Wed, 13 Jun 2001 14:59:09 -0700 (PDT)
Message-ID: <20010613215909.40314.qmail@web14704.mail.yahoo.com>
To: www-style@w3.org
I'm not sure that I totally understand your situation,
but I think it sounds like your designers want to use
classes to apply a specific style to a table cell
(<td>, probably for sizing, color, and borders) and
then apply a different style to the information
contained inside that cell (through <span
class="mystyle">, probably for text positioning, size,
font, color, etc.)

If that is the case, I would definitely agree with
your designers, because using the STYLE attribute is
no longer legal as of the release of XHTML 1.1, but
I'm drifting off topic.

Another thing - make sure your are not using tables
(i.e. the <td> tag) for page layout and positioning
things on your pages.  CSS is a much simpler, more
supported way of accomplishing things.  And CSS
positioned pages are more likely to rank high on
search engines.

Good luck,
David Bindel (chaosdb@yahoo.com)

--- Aaron Starner <cfdjlist@hotmail.com> wrote:

<HR>
<html><DIV>Why would I need to use the "CLASS"
attribute? </DIV>I have an embedded style sheet in an
HTML (actually a CFML) page. 
<DIV></DIV>Each value is dynamically populated from a
database. 
<DIV></DIV>I'm not currently using any (sub?) classes
for each element. 
<DIV></DIV>
<P>Everything is working fine, but our designers want
there to be classes, so that each &lt;td&gt; (for
example) has a CLASS attribute and the content inside
that &lt;td&gt; has a &lt;span Class=&gt; tag.</P>
<P>Why would I need those?! The style code I'm using
isn't THAT complex.</P>
<P>(Is that enough information for you guys?)</P>
<P>Aaron</P><br clear=all><hr>Get your FREE download
of MSN Explorer at <a
href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
Received on Wednesday, 13 June 2001 17:59:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT