JQuery mobile web app element theming using CSS?
So I'm making a mobile web app with jquery and I'm trying to make a custom theme using css within the html file. I'm gonna be using dropbox to distribute it.
I for example I do.ui-button {} in the style tag of my app but it's not working I want to change the color of the button and such. I want to do this with most of the elements like buttons and radio buttons, sliders, header, footer, text areas, ect.
Here's some of the code In a example app I made for this.
<style>
.ui-button {
Background-color: rgb(30, 60, 90);
}
.ui-content {
background-color: rgb(40, 60, 90);
}
.ui-header {
background-color: rgb(30, 60, 90);
}
.ui-footer {
background-color: rgb(30, 60, 90);
}
</style>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">
Header
<div data-role="content">
<a data-role="button" href="http://www.google.com/">Google</a>
<div data-role="footer">
footer
</div>
</div>
</div>
</div>
</body>
I have a iPhone 5 if that helps.
The syntax for RBG background color is:
background: rbg(30, 60, 90);
If your style is a class and not an id, it would read as follows in your style sheet:
.ui-button {
background: rbg(30, 60, 90);
}
An id would read:
#ui-button{
background: rbg(30, 60, 90);
}
You determine style or id in the HTML of your page.
<div class="some class">content</div>
<div id="some id">content</div>
- Using the deep web on an iPhone with the most recent iOS? Would I be stupid for doing this and is it possible I mean I've got all my private stuff on the phone
- Mobile web site development - images and device orientation? I have developed a mobile site with a 320px wide image on the page. When viewed on the iPhone in portrait orientation, all is. But when you view in landscape mode, it obviously doesn't fit the page. How to fix so that the image will fit all devices, regardless of orientation?
- Is it possible to cut micro sim to nano sim for iPhone 6s using web tutorials? I have just bought an iPhone 6s… And I have had the HTC M7 before and i will travel abroad tomorrow and don't have time to ask for a new sim… Can I do the cut right without damaging the iPhone?
- If I have 4g turned on will that count as using Internet or until I open a web page? I just got an iphone 5 and I don't want to get charged for no reason so I'm confused on this, if 4g is on and let's say I'm not using my phone and its just in my pocket will I be charged? Will I be charged until I use the Internet/app? Because I get pictures from friends randomly and you can only receive if you have 4g/lte or Wi-Fi on so is it safe to say that I won't get charged for just having 4g on when I'm out?