Previous Message
Next Message

Re: [css-d] Defining one element in terms of another

Sent by Dougal Campbell on 28 February 2002 09:09


On Wed, 27 Feb 2002, Dave Polaschek wrote:

> I've got a class defined in my style sheet: .fineprint {font-size:smaller}
> 
> And I'd like to define another class based on it. For example, I'd like 
> .finequote to be .fineprint plus font-style:italic.
> 
> Is there a way to define one class in terms of another like this? I know 

You can combine multiple classes on an element, but not all browsers 
support it. For example, you could do:
  .fineprint {font-size:smaller}
  .finequote {font-style:italic}

  [....]
  <p class="fineprint finequote">this should be small+italic</p>

-- 
Ernest MacDougal Campbell III, MCP+I, MCSE [EMAIL-REMOVED]>
http://dougal.gunters.org/             http://spam.gunters.org/
  Web Design & Development:  http://www.mentalcollective.com/
       This message is guaranteed to be 100% eror frea!
Previous Message
Next Message

Message thread: