This topic has 6 replies, 3 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp
Hi 8Theme,
Would you be able to figure out why the Top Bar is ignoring the “text-align: center;” on mobile devices?
URL included in post fields.
Thanks for replying when/as able!
Hello,
Try to use this code in Theme Options > Custom CSS > Custom CSS for mobile:
.header-type-17 .header-top .header-custom-block {
margin-left: 40px;
}
Regards,
Eva Kemp.
Thanks, Eva.
Is it strange that it is needs a “margin-left: 40px;” in order to give the appearance of being centered? I would have figured it would be able to receive a “text-align: center;” – I will use the margin-left but do you know why it is not taking the text-align: center rule?
Thanks again!
Hello,
Please try to add this code in Custom CSS for mobile
.header-type-17 .header-top .header-custom-block {
width: 100%;
display: inline-block;
}
Regards,
Robert Hall.
The “display: inline-block;” did it. Thanks, Robert!
P.S. Do you think Royal will add this as a default in a future theme update? It seems like the thing (have the text centered like the right nav-bar element but no worries if we just do it manually.
Thanks, guys! We can close this ticket.
Hello,
We’ll forward this notice to our developers.
If there are any questions feel free to contact us.
Regards,
Eva Kemp.
The issue related to '‘Center Text on mobile for top bar "header-custom-block"’' has been successfully resolved, and the topic is now closed for further responses