
Adjacent Sibling Selector
Monday, August 23rd, 2010I recently needed to style some Drupal blocks so that the first one in the series always received top rounded corners. I tested out how combining the adjacent sibling selector with decedent selectors would work. The declaration here acts more like a condition. block-2 is by default the top block in my sidebar. Only the first block to show gets a rounded corner top.
