Header floating on mobile site
-
Hi there,
regarding the mobile version of https://drmikeographer.co.uk , the header image is floating on the mobile version but sits nicely on the desktop version. I believe this is down to the code I’ve used;
/* Header image */
header{
margin: 0px;
padding: 0px;
height: 15em;
}
.site-title { float: none; }The height was adjust appropriately to make it look like it sat directly above the top of the page, however I am assuming that the mobile devices are taking this same measurement which causes it to create large gaps around it.
Is there better CSS that I can use that will still give me the exact same result I currently have, while also replicating across to the mobile version?
Many thanks
Mark
- The topic ‘Header floating on mobile site’ is closed to new replies.