Reputation: 585
How can I override the CSS of body using below custom style if the page require linked with the
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
<style>
body {
background-color: red;
}
</style>
I tried to save the custom style in custom.css and declare it like
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
<link rel="stylesheet" href="custom.css" />
but it doesn't work.
Upvotes: 0
Views: 113
Reputation: 3142
Check to see if it's not loading a more specific rule like body.someclassname
, or use the important
rule: body{background:red !important;}
Upvotes: 1
Reputation: 4204
Hard to tell without seeing the rest of your page, but have you tried:
body {
background-color: red !important;
}
Upvotes: 0