Wednesday, January 25, 2012

some CSS3

For every even table row in the table body of a table with an id of "listingTable" make the background color #eaf0f7 unless the "detail" class is applied to the row.

table#listingTable tbody tr:nth-child(even):not(.detail) {

   background-color:#eaf0f7;

}

 
 

For every input in "foo" that is not a checkbox, radio button, or a file control, add a pixel of padding to the top and bottom.

#foo input:not([type="checkbox"]):not([type="radio"]):not([type="file"])

{

   padding-top:1px;

   padding-bottom:1px;

}

No comments:

Post a Comment