Chris, it’s not evil but sometimes neccessary. Imagine you use something like Joomla and need to chnage CSS styles of a module. If they update the module all is gone. But if you extract the styles you want to edit and “import” them, you can attach your onw CSS with the changes and most times you will have no trouble updating :)
how to overrid the color of sticky color style:
For Example:
.sticky{
color:#000;
}
.nav{
color:#fff;
}
I get #fff as color even when sticky class is added in sticky navigation.
Please Help!!
Wow… I learn new thing here… TQ for the snippet..
Yo man really cool. I agree with mansur. Learnt a new evil technique.
I am trying to clean up a mess that was created from Framemaker and trying to override a bunch
of styles using a style sheet.
I tried using the following code but it seems to ignore it
ul.B-Bullet1 {
list-style-type: circle !important;
font-family: “Arial”, Verdana, sans-serif;
color: #17202A;
margin-left: 30px !important;
font-size: 100%;
}
ul.B-Bullet2{
list-style-type: square !important;
font-family: “Arial”, Verdana, sans-serif;
color: #17202A;
margin-left: 30px !important;
font-size: 100%;
}
what am i doing wrong?
It’s evil!!!
Code clean and you dont have to do this.
Chris, it’s not evil but sometimes neccessary. Imagine you use something like Joomla and need to chnage CSS styles of a module. If they update the module all is gone. But if you extract the styles you want to edit and “import” them, you can attach your onw CSS with the changes and most times you will have no trouble updating :)
how to overrid the color of sticky color style:
For Example:
.sticky{
color:#000;
}
.nav{
color:#fff;
}
I get #fff as color even when sticky class is added in sticky navigation.
Please Help!!
You should write next CSS statement if this navigation element contains both classes.
If you need to override the navigation element inside sticky element:
good good I learnt something new today
Great Boss.. thank you!!
if the !important is already stated above.
the solution is.
specificity
OMG…It’s working fine.. Amazing, After searching 3 hours on internet, Finally I have find this article…Thank you very much
How to override style=”display: none !important;”