Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two style.css are conflicting

Tags:

html

css

I have main style.css and the one provided with third party

// Include main CSS
<link charset="utf-8" media="screen" type="text/css" href="http://test.style-hunters.ru/wp-content/themes/style-hunters/style.css" rel="stylesheet">

// Include third party CSS, we have put it to css folder
<link href="http://test.style-hunters.ru/wp-content/themes/style-hunters/css/style.css" rel="stylesheet"> 

In the second style.css

body {
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  margin: 0;
  padding: 20px;
}

This makes all body elements to have padding.

How to resolve it?

like image 345
Captain Comic Avatar asked Jan 25 '26 07:01

Captain Comic


1 Answers

Include the third party CSS file first so that you can override undesirable rules in your own file.

like image 55
shanethehat Avatar answered Jan 26 '26 20:01

shanethehat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!