Responsive design for Logo on mobile
Posted: 23 Jun 2015, 11:40
Hy,
I would like to reduce the size of my logo if the gallery is seen from a mobile for example with smaller width.
I tried to add some custom CSS but it is not working, i wonder why ?
i added this
Normally, i was thinking it should do the trick resizing my logo from 320px to 160 if the screen is small, but it does not. I also tried something simpler like :
But still nothing.
Here is my logo config in the panel:
It seems that the w320 property from the panel config is applied after this CSS.
Could you help me ?
Thanks in advance.
I would like to reduce the size of my logo if the gallery is seen from a mobile for example with smaller width.
I tried to add some custom CSS but it is not working, i wonder why ?
i added this
Code
@media only screen and (max-device-width:480px) {
body[class*='topbar'].topbar-float .nav>div>.logo {
width: 160px;
}
}Code
@media (max-device-width:480px) {
body[class*='topbar'].topbar-float .nav>div>.logo {
width: 160px;
}
}Here is my logo config in the panel:
Code
logo: style-icon m pad1 w320Could you help me ?
Thanks in advance.