I’ve searched your forum and can’t quite figure out how to center the “Small bar above Main Menu” element.
I’d also like to make the “Small bar above Main Menu” dropdown list items’ font a bit smaller.
Please help!
Hey Scott,
Add this to quick css:
<pre><code>#top .sub_menu>ul {
margin: 0 auto!important;
text-align: center!important;
margin-left: 230px!important;
}
#top #header_meta a{
font-size:14px!important;
}
Best regards,
Jordan Shannon
Hi Jordan, thanks for your quick response!
This CSS didn’t quite work. The top menu was off center on desktop and wasn’t centered at all on mobile.
Also, I’d like to keep the top menu font at 18px and have the top menu dropdown list items be 12px.
Thanks again.
Hi,
Please replace the code with the below one to center the top menu and change the font size for the sub menu items :)
#top .av_secondary_left .sub_menu {
padding-right: 0px;
left: 50%;
transform: translateX(-50%);
}
#top #header_meta nav ul ul a,
#top #header_meta nav ul ul {
font-size: 12px!important;
}
Best regards,
Vinay
Now the top menu is centered on desktop and tablet size, but not on the mobile size.
Hi,
Try adding the following to quick css as well:
@media only screen and (max-width: 767px){
#avia2-menu.menu{
position:relative!important;
}}
Best regards,
Jordan Shannon
The top menu still isn’t centered on mobile.
Hi,
Please try this CSS as well:
@media only screen and (max-width: 767px) {
#top .av_secondary_left .sub_menu {
left: 0 !important;
transform: translateX(0%) !important;
}
}
Best regards,
Rikard
That worked!
Thanks for your time.
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Vinay