Resize logo

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Oct 12, 2015 5:58 pm
Reply with quote
Report this post
captura3.png
captura1.png
Hi again,

I am trying to resize the logo image as the gkbannertop do. When you make the screen smaller the bannertop resize and take the tablet.css data. But my logo has always the same size, it is not resizing as the banner.

I'd like to resize both at the same time. Then, in 640 px banner dissapear and logo get bigger in the center of the "smartphone", that is ok, but I don't know how to resize both logo and banner.

I send an image and the link to my website is http://www.territoriosnow.com

Thanks
User avatar
Senior Boarder

teitbite
Wed Oct 14, 2015 9:56 am
Reply with quote
Report this post
Hi

Please try add this to override.css:

Code: Select all
@media only screen and (min-width:641px) and (max-width: 920px) {
#gkLogo.cssLogo {
width: 145px;
background-size: 100% auto;
}
}
User avatar
Moderator

GK User
Wed Oct 14, 2015 3:50 pm
Reply with quote
Report this post
Perfect¡¡¡
Works fine¡¡
Thanks
User avatar
Senior Boarder

GK User
Sat Nov 07, 2015 3:55 pm
Reply with quote
Report this post
matrioskapro wrote:Perfect¡¡¡
Works fine¡¡
Thanks

Hi again teibite,

One question about the code you gave me. How can I write two rules for the logo size?? So one for 1100 to 921 (200px) and the other 920 to 641 (145px). Because I have write in this way and the second one doesn't works... only first:
Code: Select all
@media only screen and (min-width:921px) and (max-width: 1100px) {
    #gkLogo.cssLogo {
    width: 200px;
    background-size: 100% auto;
    }
   
@media only screen and (min-width:641px) and (max-width: 920px) {
    #gkLogo.cssLogo {
    width: 145px;
    background-size: 100% auto;
    }


Thanks
User avatar
Senior Boarder

teitbite
Thu Nov 12, 2015 2:03 pm
Reply with quote
Report this post
Hi

This code is wrong. You are missing closing tags. Use it like this:

Code: Select all
@media only screen and (min-width:921px) and (max-width: 1100px) {
    #gkLogo.cssLogo {
    width: 200px;
    background-size: 100% auto;
    }
}

@media only screen and (min-width:641px) and (max-width: 920px) {
    #gkLogo.cssLogo {
        width: 145px;
        background-size: 100% auto;
    }
}
User avatar
Moderator


cron