Sirs do I gather from this that "my" code is correct? I do understand inheritance and cascade, even though for the syntax and use of it in css I am not fluent.
Now, the <code_x> example I queried about, what would it exactly look like? I would be very grateful to know!-) Øyvind 2. feb. 2014 kl. 22:37 skrev Chris Rockwell <[email protected]>: > Ø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? Øyvind -- Øyvind Teig Øvre Møllenberg 11 7014 Trondheim, Norway - Tel 959 615 06 - [email protected] http://www.teigfam.net/oyvind/ - trad home page http://oyvteig.blogspot.com/ - older blogs ______________________________________________________________________ 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/
