css not showing up. (.not-ie)
hello community.
it's me again. i'm sorry that i have somany questions.
but i have some problems wit CSS.
when i copie a piece of CSS from my template to contao everyting is ok.
but it is not showing up for me.
this is the CSS :
Code:
.not-ie #class .current > a:before
does some know how i can set it up to show?
much thanks tieme
Re: css not showing up. (.not-ie)
write down the html code too
Re: css not showing up. (.not-ie)
Quote:
Originally Posted by wotanskrieg
write down the html code too
this is the html code for the CSS :
Re: css not showing up. (.not-ie)
There are two unknown elements in your selector: .not-ie and #class. Can you verify that you do have them in your HTML? .not-ie is not in Contao for as far as I know, perhaps some extension puts that in? #class is also not in contao.
What I normally do when a selector is not working is first inspecting the element using Firebug (but both Chrome and IE9 have built in alternatives that work exactly the same). That way I can see which styles are actually used and also which are overridden. If my style is IN the list then another selector is probably more important, so increase this ones strength or add !important to the styles that don't make it (color: #000 !important;)
If the selector is not displayed by Firebug then the selector does not apply and you made a mistake. Try building it up slowly, element by element until you find the problem...
In this specific case you should take off :before to see if your selector selects the element at all. Using pseudo elements can be tricky!