Logo Mobile version issue and solution
September 2015 Joomla Template
- GK User
- Fri Feb 19, 2016 1:22 pm
I had an issue with a logo in mobile version of a site I'm working on, but I just solved at this way with override.css.

Which becomes


- Code: Select all
#gkLogo img {
display: block;
height: 62px;
margin: 0;
max-width: 300px;
width: auto;
}
Which becomes

- Code: Select all
#gkLogo img {
margin: 0;
position: relative;
top: 50%;
transform: translate(0, -50%);
height:auto;
width:auto;
}
-
- Junior Boarder
- GK User
- Mon Feb 22, 2016 8:21 pm
Hello,
I suggest to change your code to:
Because some older browsers still can need prefixes to work with the transform property properly.
I suggest to change your code to:
- Code: Select all
#gkLogo img {
margin: 0;
position: relative;
top: 50%;
-webkit-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
transform: translate(0, -50%);
height:auto;
width:auto;
}
Because some older browsers still can need prefixes to work with the transform property properly.
-
- Moderator
- GK User
- Thu Mar 17, 2016 3:32 pm
Thanks for the hint @Tidy
-
- Junior Boarder
3 posts
• Page 1 of 1