Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 844
Cine Avatar asked Mar 24 '26 20:03

Cine


1 Answers

try this may be it's helpful to you

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

check this thread

like image 73
sandeep Avatar answered Mar 27 '26 09:03

sandeep



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!