Slug: stylesheet-fixes Date: 2003-01-16 Title: Stylesheet fixes layout: post

Well, I've fixed some bugs in my redmonk stylesheets, as well as those for a client.

I'm not sure where I picked it up, but I had the idea that inherited styles were separated by a ">", as in:

.someClass > .childClass {...}

This worked in the browsers (Chimera and Safari) I do most development in, as well as IE6/Win. However, it was freaking out IE5/Win.

I found out at webreview's browser style support reference (via css.nu) that inherited styles are declared so:

.someClass .childClass {...}

After fixing that, the styles are now being rendered properly. Now, I wonder where I got the idea that there was supposed to be a ">" in there, and why were several popular browsers rendering it properly?