If your goal is to override styles by importing another stylesheet, you should use the order of priority.
<head> <title>Title</title> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="style-override.css" rel="stylesheet" type="text/css" /> </head>
Here, style.css is the original, and style-override.css will contain your new custom css. These styles override styles from style.css . This means that you do not need to use !important because the style is overwritten.
Alternatively, you can add CSS reset to remove all styles and build on top of it.
<head> <title>Title</title> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="reset.css" rel="stylesheet" type="text/css" /> <link href="style-override.css" rel="stylesheet" type="text/css" /> </head>
Check out CSS reset at http://meyerweb.com/eric/tools/css/reset/ and add it to reset.css.
source share