Tagged: header, responsive
Hi there,
The header of my site looks great when viewed on a desktop but when loaded on a mobile device the layout breaks eg:
This is my site:
What I wanted to know was if there was a way to fix this and have these elements displayed all on one line ?
Thanks in advance
Ed
Hi,
This will fix the header a bit. Add this on your custom.css or Quick CSS
@media only screen and (max-width: 767px) {
.responsive #header .social_bookmarks {
width: 100px;
float: left;
}
.responsive.social_header .phone-info {
text-align: right;
padding-top: 10px;
}
.responsive #header .sub_menu, .responsive #header_meta .sub_menu>ul {
float: right;
text-align: right;
margin: 0 auto;
position: static;
display: block;
width: 150px;
}
}
Regards,
Ismael
Hi Ismael,
That seemed to improve things a lot, but the elements are still not all on one line, do you know if this would be possible ?
Thanks
Ed
Any updates ?
Hi!
You can try following css code
@media only screen and (max-width: 767px){
.responsive.social_header .phone-info {
float: right;
margin-top: -21px;
}
.responsive #header .social_bookmarks {
float: left;
width: auto;
}
}
Regards,
Peter