html - Avoid !important in new css file -


I have to change an existing website so that it becomes responsive, I do not have the possibility of starting down completely, so I An additional CSS file has been created with some @ media -queries to change the style based on browser width. I import the css-file into the original CSS-file via @import .

However, I have to write Important after each code

I have to put the original file to @ media (minimum-width: 1200 px) The thought of putting between {...} is related to {/ code}, but it will only apply to everything and therefore will not display anything on the device & lt; 1200px.

How should I contact this? Do I have to override the original file with ! Must use important , or is there a second, possibly better, attitude?

If you tilt it well, then your responsive file is without important Can do. Import your additional CSS-files after the original and ensure that selectors, or more, specific


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -