Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't change jQuery Mobile background color?

I'm implementing jQuery Mobile for the first time and am having a hard time changing the background color of my site's body. Instead of posting all of the HTML and CSS here (because it's long), you can look at the source here: http://www.tommaxwell.me

I've tried adding it to the desktop media query, the body of the site outside of any media queries, and no luck. This is weird, but I've never used jQuery Mobile before.

like image 881
Tom Maxwell Avatar asked Jan 15 '13 05:01

Tom Maxwell


2 Answers

Change this css properties in your siteredesign.css(make sure it overrides jquery.mobile.css):

.ui-body-c, .ui-overlay-c { background:#000; }

like image 195
Rajiv007 Avatar answered Sep 25 '22 15:09

Rajiv007


As an alternative for changing the data theme itself (.ui-body-c ..), you could also use another of the predefined data themes, i.e theme "a":

<div data-role="page" data-theme="a">

like image 23
EggMayo Avatar answered Sep 23 '22 15:09

EggMayo