Re: Multiple Classes ..;

by "Martin Clifford" <MLC1(at)nrc.gov>

 Date:  Wed, 26 Jun 2002 08:36:36 -0400
 To:  <hwg-techniques(at)hwg.org>,
<petermulders(at)yucom.be>
 Cc:  <klaas(at)grace.be>
  todo: View Thread, Original
Just have your main class for all of your TD, TR, TABLE, etc. elements.  =
Better illustrated with an example to show how to combine the main class =
with a different font for two TDs.

<table width=3D"100%">
  <tr>
    <td class=3D"mainclass" style=3D"font-family: verdana, sans-serif;">
          Content
    </td>
    <td class=3D"mainclass" style=3D"font-family: arial, serif;">
          Different looking content
    </td>
  </tr>
</table>

Martin

>>> "peter" <petermulders(at)yucom.be> 06/26/02 08:06AM >>>
Hi,

A question about adding styles.  I have a number of block items in my page
that have to get a rather complex class tied to.  Now preactically, the
classes differ from each other in only a very limited number of elements.
For example, they all use the same margin, padding and border, but just a
different font style.

Now I would like to consolidate the css files into one class defining =
those
margins and the other classes defining the differences.  The problem then
is, how can I assign multiple classes (the one defining margins and the =
one
defining text style) to one block element?


Peter & Kayjey
www.fiatcoupe.net=20

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA