____________________________________________________________
| logo_image page_Title |
------------------------------------------------------------
I am looking to create a header for my PhoneGap app similar to the one shown here. I want to have a logo (image) on the left side of the header and the page title (text) centered. I have already attempted to do this using the following code:
<div data-role="header" >
<div class="logo" > <img src="img/logo.png" /> </div>
<h1 id="title">Main Page</h1>
<a href="" data-role="button" data-icon="delete" class="ui-btn-right" data-transition="fade" onclick="exitButtonClick()">Exit</a>
</div>
Here is the CSS used for styling:
.logo {
vertical-align: left;
}
.title{
text-align: center;
display: inline-block;
vertical-align: middle;
}
Can someone please guide me on how to make this work? I am new to CSS and would appreciate any help.