If I have a css file, mystyle.css:
body {
font-family: OpenSans, Arial, sans-serif;
font-size: 14px;
}
.news {
width: 800px;
background-color: #99EBFF;
}
but I wanted to override it for a specific part of the site for (in another CSS file, for example, cms-news-pages.css), e.g.:
.news {
padding: 2.5px;
width: 600px;
background-color: #FFE6B3 !important;
}
what would be a preferable alternative to !important for a class without getting into too much code spaghetti?
If anyone could advise me I'd be grateful for this, trying to make cleaner CSS coding.
News
This is the news.
News on News Page
This is the news on a dedicated news page.