Kelvin
Kelvin

Reputation: 585

override jquery mobile body background-color

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

Answers (2)

n1kkou
n1kkou

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

wickywills
wickywills

Reputation: 4204

Hard to tell without seeing the rest of your page, but have you tried:

body {
   background-color: red !important;
}

Upvotes: 0

Related Questions