Resize the logo for mobile

December 2012 Joomla Template
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
Wed Oct 01, 2014 11:34 am
Reply with quote
Report this post
mobile.jpg


I have changed my logo through css override. Using the @media option i managed to resize the logo for mobile. However it displays a hughe black area on the mobile version. Is there something i am forgetting? My site is vepvoetbal.nl
User avatar
Senior Boarder

GK User
Wed Oct 01, 2014 1:20 pm
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Wed Oct 01, 2014 1:36 pm
Reply with quote
Report this post
Mentioned the url in the previous post: http://vepvoetbal.nl/
User avatar
Senior Boarder

GK User
Wed Oct 01, 2014 4:49 pm
Reply with quote
Report this post
Oh sorry, I haven't seen it as it is plain text.
Could you please disable css compression for the time being so I can check which files makes this change?
User avatar
Moderator

GK User
Wed Oct 01, 2014 6:53 pm
Reply with quote
Report this post
Have disabled the compression in the template...
User avatar
Senior Boarder

GK User
Fri Oct 03, 2014 8:30 pm
Reply with quote
Report this post
you have set some media-queries as a breakpoints, please modify "#gkLogo.cssLogo" element height to make it look better.
User avatar
Moderator

GK User
Wed Oct 08, 2014 10:41 am
Reply with quote
Report this post
Have set the below in my override, but when adding a height att. is does not seem to be working. Am i overlooking something?


@media (max-width:620px) {
#gkLogo.cssLogo {
margin-right: 0px;
max-width: 80%;
background-size: 80% !important;
}
}

@media (max-width:1024px) {
#gkLogo.cssLogo {
margin-right: 0px;
max-width: 80%;
background-size: 80% !important;
}
}
@media (max-width:820px) {
#gkLogo.cssLogo {
margin-right: 0px;
max-width: 80%;
background-size: 80% !important;
}
}

#gkLogo.cssLogo {
background-image: url('/images/siteimages/intro.jpg');
height: 150px;
width: 1080px;
margin: 0px 30px 0px 0px;
User avatar
Senior Boarder

GK User
Thu Oct 09, 2014 12:05 pm
Reply with quote
Report this post
Please disable css compression so I can check it.
User avatar
Moderator

GK User
Thu Oct 09, 2014 2:30 pm
Reply with quote
Report this post
disabled compression again..
User avatar
Senior Boarder

GK User
Thu Oct 09, 2014 7:03 pm
Reply with quote
Report this post
There is an importance in elements order. Please try this way:
Code: Select all
#gkLogo.cssLogo {
  background-image: url('/images/siteimages/intro.jpg');
  height: 150px;
  width: 1080px;
  margin: 0px 30px 0px 0px;
}
@media (max-width:1024px) {
  #gkLogo.cssLogo {
    margin-right: 0px;
    max-width: 80%;
    background-size: 80% !important;
  }
}
@media (max-width:820px) {
  #gkLogo.cssLogo {
    margin-right: 0px;
    max-width: 80%;
    background-size: 80% !important;
  }
}
@media only screen and (max-width: 620px) {
  #gkLogo.cssLogo {
    background: url("/images/siteimages/introsmall.jpg") !important;
    height: 86px;
    width: 620px;
  }
}
#gkFooterNav li {
  font-size: 14px;
}
#gkFooterNav a {
  color: #000;
}
User avatar
Moderator