Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Class inhering

#1 2006-05-17 22:10:45

whatbrick
Member
From: Texas
Registered: 2006-03-13
Posts: 100

Re: Class inhering

You can combine classes in an element like this:

<div class="foot rightfoot"></div>

This will apply all the style declarations from both foot and rightfoot. If both contain similar declarations (such as both containing a color attribute), then the attributes of the styles listed later will be used. As far as I know, you can combine as many classes as you like, but I haven’t tested it.


Do not taunt the Markup Monkey!

Offline

  1. Index
  2. » Archives
  3. » Class inhering

Board footer

Powered by FluxBB