One interesting approach I am using is applying !important to all of the css properties' values like this:
.someclass{
color: #f00 !important;
background-color: #ff0 !important;
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
display: block !important;
}
Are there any methods available that would allow me to apply !important only once so that all values inside .someclass
receive the importance?
Edit
Imagine the main div being controlled by some scripts. In such a scenario, how can I easily apply !important to all properties at once?