>
> Øyvind Teig wrote:
>
> Could anybody please help me with a class for WordPress, <code_x>
>> that would inherit all of <code> and then add tighter lines and
>> courier?
>>
>>
I think you're talking about cascading and inheritance. For example, you
can set all the default values for any ordered lists (<ol>) that have the
class 'ol_href'. Then if you wanted to change x number of those, you can
add an additional class, say 'ol_href__emphasized' to children that can
have additional declarations that either override or extend ol_href.
<style>
.ol_href { font-family: sans-serif; font-size:22px}
.ol_href__emphasized {font-family: serif;} /* already has the font-size
22px, so only declare what is necessary */
</style>
<ol class="ol_href">
<li>This is a normal ol_href li</li>
<li class="ol_href__emphasized">This has additional declarations</li>
</ol>
Not necessarily how I would mark it up, but does that help with
understanding how it works?
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/