http://jsbin.com/apate4/9/
dt, dd { border-top:1px solid #555;float:left }
dt:first-child {border-top:0}
dd:first-child {border-top:0}
h2, p {background:#ddd;padding:15px;margin:5px}
h2:first-child,p:first-child {background:#95B26B} p/s. I tried declared the
two individually as I thought maybe they can't be grouped, but it makes no
differences.
According to the spec, it should work.
The :first-child pseudo-class represents an element that is the first child of
some other element.
http://www.w3.org/TR/css3-selectors/#first-child-pseudo
Assigning a class to the element is of no help.
tee
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************