I have an image in a header, and when i wrap the <img>
in a <a>
tag the image is displaced. I am assuming that the <a>
tag has default margins or padding that is causing this. How do you remove the default margins or padding of the <a>
tag in jquery-mobile?
<div data-role="header" data-position="fixed" class="shadow">
<a href="#CheckInPage" data-role="none" id="newheader">
<img id="goHeaderLogo" src="images/go.gif" alt="go Logo"/>
</a>
<h2>Locations Near Me</h2>
</div>
I tried this:
<script>
$('#newheader').css("margin",'0px');
</script>