Styling a specific link - CSS not working?

Styling a specific link - CSS not working? was created by fsjoom12

Posted 11 years 4 months ago #7360
I am enjoying the versatility of MaxiMenuCK!

I need to style two of my menu links for a specific effect.

However, when I try to address them via CSS, nothing happens. I think there must be something about how the item classes are specified.

Here is what an inspection of the DOM tells me the element is:

li class="maximenuck item476 level1 "

But if I try to style it with a CSS rule such as:

li.maximenuck item476 level1 {background:red !important;}

It does not change the color.

Puzzling.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Styling a specific link - CSS not working?

Posted 11 years 4 months ago #7362
Hi
I think that your code is bad try this :
Code:
li.maximenuck.item476.level1 {background:red !important;}
Ced

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: fsjoom12

Please Log in or Create an account to join the conversation.

Replied by fsjoom12 on topic Styling a specific link - CSS not working?

Posted 11 years 4 months ago #7365
Yes, that was the problem. Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.655 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1020 guests and no members online