Both selectors should work in everything but IE6; see this URL:
http://kimblim.dk/csstest/ and scroll down a bit.
- Nate
On Fri, May 30, 2008 at 8:10 AM, tee <[EMAIL PROTECTED]> wrote:
> 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]
> *******************************************************************
>
>
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************