Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize the header display color?

I'm new to jQuery mobile. I was trying to change the default header color to a #013A6F.

<div data-role="header" data-theme="b">
  <h1> Welcome</h1>
</div>

Any insight??

like image 723
peterpan Avatar asked Jun 08 '11 04:06

peterpan


People also ask

How do you add a color to a header in HTML?

To add background color in HTML, use the CSS background-color property. Set it to the color name or code you want and place it inside a style attribute. Then add this style attribute to an HTML element, like a table, heading, div, or span tag.


1 Answers

I think this would be your css.[Link here]
If so, do this.

.ui-bar-b h1{
    background-color: #013A6F;
}
like image 160
naveen Avatar answered Oct 05 '22 01:10

naveen