Media Query – Suits Theme
-
Hi there WordPress.com forum,
I have a very large header on my blog that gets distorted on devices. Does anyone know the CSS to change the URL of and/or hide the header to my blog page on mobile/tablets?
The blog I need help with is: (visible only to logged in users)
-
I wouldn’t advise hiding the header completely, but if you upload a smaller image to your media library then something like this should work for tablet and mobile devices:
@media screen and (max-width: 959px) { #masthead a.home-link { width:100%; margin:0; background:#000 url("SMALL_IMG_URL") no-repeat center center; } } -
-
Yes, you can just duplicate the rule and use a different max-width, one that’s narrower to only affect mobile screens.
-
- The topic ‘Media Query – Suits Theme’ is closed to new replies.