I am trying to put a site together for a friend using a really nice premium WordPress theme. I have paid for the theme but the designer will not help with customisation.
The site is currently at www.zerocarbonfood.co.uk/test/. Originally the theme had a small left-aligned logo but my friend favours this large full-width one, which I think works better. Problem is now that I look at it on an iPad or iPhone (portrait) the logo is too big and screws it up. In the theme options it is defined as 922px width and 168px height. I cannot put a percentage value in there. Can I override this in CSS somewhere?
Any help would be gratefully received as I am a bit out of my depth.
try using
max-width: 100%; height: auto;
this should resize the image properly.The easiest way to deal with it is to insert the logo image inline rather than as a background image. That way you can apply CSS to the img element itself;
HTML
CSS
You can use following media condition in css
Try to style the image, not the link.
Try using % instead of px. This way, your image will scale with page size.
In your HTML, you could try something like
This would scale with screen width. Of course, you want to scale the height as well to preserve aspect ratio.
FYI, the site looks fine on my Android phone when I zoom out all the way.
Try
It will overwrite the previous values.
How image gets zoomed on hover?
Here is the sample html:
Here is part of css:
Did you use the viewport meta tag in the header?