Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change background-color with jQuery Mobile

I want to change the global background-color for my app, but things don't work.

Adding CSS to the body doesn't work (neither does adding CSS to html element)

body {
    background-color:#2b2e31;
}

Adding id's to my div-elements works sometimes, but I'm not gonna add an Id to all my elements.

Does anybody know how to solve this?

like image 945
Matt Avatar asked Apr 28 '13 13:04

Matt


2 Answers

This solved it

.ui-page { 
    background:#2b2e31;
}
like image 58
Matt Avatar answered Nov 07 '22 23:11

Matt


Or maybe this might work. Just download the 'Without-A-Theme' jQuery mobile CSS version. Here is the link: http://code.jquery.com/mobile/1.3.2/jquery.mobile.structure-1.3.2.min.css You can find this in the jQuery mobile page

like image 31
Rijin Mk Avatar answered Nov 07 '22 22:11

Rijin Mk