Published
Updated
Easily manage projects with monday.com
p {
font-size: 24px !important;
}
The !important rule at the end of a value will override any other style declarations of that attribute, including inline styles.
All comments are held for moderation. We'll publish all comments that are on topic, not rude, and adhere to our Code of Conduct. You'll even get little stars if you do an extra good job.
You may write comments in Markdown. This is the best way to post any code, inline like `<div>this</div>` or multiline blocks within triple backtick fences (```) with double new lines before and after.
Want to tell us something privately, like pointing out a typo or stuff like that? Contact Us.
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