Cine
Cine

Reputation: 4402

IE9 css :first-child

I have a css rule like this in my css file:

.Island_VerticalMenu:first-child { width: 100% }

However, when I view it in the developer tool of IE9, it looks like this:

:first-child.Island_VerticalMenu { width: 100% }

and doesnt work.

If I manually change it to the first one in the developer tool, it is applied correctly.

Any known workaround?

Update:

* > .Island_VerticalMenu:first-child { width: 100% }
* > table.Island_VerticalMenu:first-child { width: 100% }
table.Island_VerticalMenu:first-child { width: 100% }
table.Island_VerticalMenu > span  { width: 100% }
.Island_VerticalMenu:first-child { width: 100% }
.Island_VerticalMenu:first-child span { width: 100% }
.Island_VerticalMenu  span:first-of-type { width: 100% }
.Island_VerticalMenu > span { width: 100% }

None of these work

PS. I am in compatibility mode

Upvotes: 3

Views: 3289

Answers (1)

sandeep
sandeep

Reputation: 92793

try this may be it's helpful to you

<meta http-equiv="X-UA-Compatible" content="IE=9" />

check this thread

Upvotes: 3

Related Questions