I have this
#best_seller {width 200px;background: #369}
#best_seller ul {background: #000}
#best_seller ul:first-child {background: #ddd}

If I add an adjacent selector

#best_seller ul+ul {background: red}

<div id="best_seller">
<ul>.....</ul> /* this one should show background #ddd but it doesn't*/
        <ul>.....</ul> /* adjacent works! Red background show up) */
        <ul>.....</ul>  /* this one shows black background and is correct. */
</div>

according to w3c css2 spec, 5.11.1 :first-child pseudo-class:
The :first-child pseudo-class matches an element that is the first child of some other element.

tee


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to