Logo too big for small screens

GK User
Thu Aug 13, 2015 9:38 am
Hi,

I know, there is still a post about this topic but there isn't a solution for me.

My logo in the header is very small, but when I resize it with css code, it’s too big for small screens.
I would like to have a smaller logo only for mobile view on small screens. On screens wider than 640px I want to use a bigger logo.
How can I do that? (At demo version it looks perfect! I have replace the „logo-small.png“ with my own logo but then it is too small on the wide screen.)
User avatar
Expert Boarder

GK User
Thu Aug 13, 2015 11:51 am
Could you please post an url to your site?
User avatar
Moderator

GK User
Thu Aug 13, 2015 12:45 pm
I have sent you a private message.
User avatar
Expert Boarder

GK User
Mon Aug 17, 2015 6:25 pm
Please edit: /templates/gk_steakhouse/css/override.css and add at its end:
Code: Select all
@media (min-width:640px){
   #gkHeaderNav #gkLogoSmall {
       background-position: center center;
       height: 70px;
       width: 200px;
       margin: 0 0 0 -100px;
   }
}

Remember to enable "CSS override" in template settings - advanced section.

Ps - if you would like to increase the size even more just remember to set last margin value to half of selected width (with negative sign).
User avatar
Moderator

GK User
Tue Aug 18, 2015 8:22 am
Thank you! It looks perfect :-)
User avatar
Expert Boarder

GK User
Wed Aug 19, 2015 10:23 am
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Wed Aug 19, 2015 10:59 am
Hmm .. on PC it looks perfect but the Logo on Smartphone is a little bit too small, where can I resize it?

Thank you for your request!
User avatar
Expert Boarder

GK User
Fri Aug 21, 2015 7:22 am
Please use this code in override.css:
Code: Select all
#gkLogoSmall.cssLogo {
    height: 70px;
    margin-top: 3px!important;
    width: 112px;
}

Now modify width/height/top spacing to your liking.
Ps. Place this declaration before previous one.
User avatar
Moderator

GK User
Fri Aug 21, 2015 8:11 am
Thank you very much!
User avatar
Expert Boarder

GK User
Mon Aug 24, 2015 7:54 am
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Mon Aug 24, 2015 2:47 pm
Yes, please!

When I open the website with Internet Explorer the logo is very small! How can I fix this?

Thank you in advance!
User avatar
Expert Boarder

GK User
Fri Aug 28, 2015 6:33 am
What version of IE?
User avatar
Moderator

GK User
Fri Aug 28, 2015 8:00 am
Internet Explorer 11

It seems to me, that the IE doesn't adopt some code from override.css! The Logo is too small and a button isn't centered!
User avatar
Expert Boarder

GK User
Mon Aug 31, 2015 10:31 am
Is the issue only with ie11 or any uther browser too? (I'm on a Mac so testing IE11 is quietly difficult).
User avatar
Moderator

GK User
Mon Aug 31, 2015 1:44 pm
It's only with IE!
Have I wrote something wrong in override.css?
User avatar
Expert Boarder

GK User
Wed Sep 02, 2015 3:10 pm
Guys at Microsoft simply doenst care about web standards...
Please check if this code helps:
Code: Select all
#gkLogoSmall.cssLogo {
    height: 70px !important;
    margin-top: 3px!important;
    width: 112px !important;
}
User avatar
Moderator

GK User
Wed Sep 02, 2015 3:21 pm
Yes - it's annoying!
Unfortunately not!
When I changed it, all browsers looks like IE :-/
User avatar
Expert Boarder

GK User
Wed Sep 02, 2015 3:46 pm
Ok, then remove the change and add !important do @media definition (all 4 lines from screenshot)
User avatar
Moderator

GK User
Wed Sep 02, 2015 4:07 pm
I tried it, but it doesn't change anything! (I should change it in override.css or?)
User avatar
Expert Boarder

GK User
Thu Sep 03, 2015 7:55 am
Yes, exactly in override.css
User avatar
Moderator

GK User
Thu Sep 03, 2015 8:01 am
Yes I did it - but the problem is still the same...
User avatar
Expert Boarder

GK User
Thu Sep 03, 2015 8:47 am
I guess the problem might be in your override.css. There is a first @media section open, but I can't see its closing, while inside next @media section opens. Please recheck the override.css file again, fix errors and try again.
User avatar
Moderator

GK User
Thu Sep 03, 2015 3:20 pm
I'm embarrassed! Thank you very much!!!
User avatar
Expert Boarder

GK User
Mon Sep 07, 2015 7:36 am
Don't worry, mistakes happens. I could suggest you to use indentation in the code:
Code: Select all
@media (xxxx){
    #selector {
        width: xxx;
    }
}

this way it is clearly visible if something is missing.
User avatar
Moderator


cron