Responsive Logo

GK User
Mon Nov 23, 2015 3:52 pm
I have updated logo.svg with my logo and put in an override for the width and height. The logo looks fine on the desktop but the logo is not scaling on mobile, it is cropped. Any help on what I did wrong?

http://www.capandhare.com/joomla
User avatar
Fresh Boarder

GK User
Tue Nov 24, 2015 5:34 pm
Please edit: /templates/gk_university/css/override.css and add at its end:
Code: Select all
.svg #gkLogo.cssLogo {
    background-size: 100%;
}

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

Ps, I also see it doesn't look good at mobile (320px screen size), so please add this code also:
Code: Select all
@media (max-width: 370px){
    #gkLogo.cssLogo {
        width: 300px;
    }
}
User avatar
Moderator

GK User
Tue Nov 24, 2015 6:20 pm
Worked a treat, thanks!
User avatar
Fresh Boarder

GK User
Wed Nov 25, 2015 7:36 pm
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Wed Nov 25, 2015 7:39 pm
nope. this takes care of it.
User avatar
Fresh Boarder

GK User
Wed Nov 25, 2015 7:48 pm
Feel free to post new forum threads if you have any other questions - it allows us to answer faster.
User avatar
Moderator


cron