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
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
-
- Expert Boarder
- Joshua M
- Thu Oct 06, 2016 8:08 am
Hello,
Please add the following custom css code:
Please add the following custom css code:
- Code: Select all
@media(max-width: 840px) {
.entry-header > img, #gk-header-mod img {
width: auto!important;
}
}
-
- 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
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
-
- 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.
into i.e.
- Code: Select all
@media(max-width: 490px)
-
- Moderator
- GK User
- Thu Oct 06, 2016 9:09 pm
It worked! Thank you very much!
-
- Expert Boarder
5 posts
• Page 1 of 1