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 How should I contact this? Do I have to override the original file with @ 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.
! 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
Post a Comment