Examples of Useful CSS Classes: Difference between revisions


mNo edit summary
No edit summary
Line 3: Line 3:


====Useful CSS Classes:====
====Useful CSS Classes:====
 
<source lang="css">
     .odd Is added to every odd blog post or list item in a content component
     .odd Is added to every odd blog post or list item in a content component
     .even Is added to every even blog post or list item in a content component
     .even Is added to every even blog post or list item in a content component
     .first Is added to the first blog post or list item in a content component
     .first Is added to the first blog post or list item in a content component
     .last Is added to the last blog post or list item in a content component
     .last Is added to the last blog post or list item in a content component
</source>





Revision as of 21:29, 13 January 2009

We've added some useful CSS classes to places like the blog component that will help you with visual formatting if you choose to use them.


Useful CSS Classes:

    .odd 	Is added to every odd blog post or list item in a content component
    .even 	Is added to every even blog post or list item in a content component
    .first 	Is added to the first blog post or list item in a content component
    .last 	Is added to the last blog post or list item in a content component


You can add style declarations to your CSS file for these classes for some useful visual formatting.