...

View Full Version : Problem with multiple classes



ktsixit
11-13-2009, 11:49 AM
Hi all,
I have created a menu in my website and there are multiple classes applied on it. This is what it looks like:
<li class="parent active item29"><a href="#">Menu item 1</a></li>

I'm trying to access it's style using:
li.parent.active.item29 a{...}

but it's not working. Am I doing something wrong?

abduraooft
11-13-2009, 12:02 PM
I'm trying to access it's style using:
li.parent.active.item29 a{...} I don't see anything wrong in that. I'd recommend you to validate your CSS using http://jigsaw.w3.org/css-validator/.

Or they might be some more specific selector (http://htmldog.com/guides/cssadvanced/specificity/), which overrides the above one.
Could you post a link to your page?

ktsixit
11-13-2009, 12:08 PM
you are there right. There was some kind of override in css code. I figured out how to fix this. Thank you very much for your quick response :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum