Style page header
Description
The following code shows how to style page header.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.css">
<style type='text/css'>
.t1 {<!-- w w w . j a v a 2s . c o m-->
color: red;
font-size: 24pt;
font-weight: normal;
}
.t2 {
color: white;
font-size: 24pt;
font-weight: normal;
}
.ui-header .ui-title {
margin: 0 30% 0em;
}
</style>
</head>
<body>
<div data-role="header" data-position="fixed">
<a href="#" data-icon="arrow-l" data-direction="reverse"
data-iconpos="notext" class="ui-btn-left jqm-home dd-btn">Back</a>
<h1>
<span class="t1">My</span><span class="t2">App</span>
</h1>
</div>
</body>
</html>