Header image is not keeping propostion on mobile

Multipurpose WordPress Theme Forum Support
GK User
Wed Oct 05, 2016 9:08 am
Hello,

When looking my website in mobile header image is not keeping proportions, it's distorted. Can you help me make it keep its proportions? You can look my website here:

http://horadourada.com.br

Kind regards,
Bruno
User avatar
Expert Boarder

Joshua M
Thu Oct 06, 2016 8:08 am
Hello,

Please add the following custom css code:
Code: Select all
@media(max-width: 840px) {
.entry-header > img, #gk-header-mod img {
  width: auto!important;
}
}
User avatar
Moderator

GK User
Thu Oct 06, 2016 9:46 am
Hello Joshua,

Thanks for your reply. It worked for small screens, but for a bit larger screens like tablets, the image gets smaller than the screen with white borders on the sides. Can you help me adjust that?

Kind regards,
Bruno
User avatar
Expert Boarder

Joshua M
Thu Oct 06, 2016 8:25 pm
In this case, please change the media query: @media(max-width: 840px)
into i.e.
Code: Select all
@media(max-width: 490px)
User avatar
Moderator

GK User
Thu Oct 06, 2016 9:09 pm
It worked! Thank you very much!
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.