Archived topic
sub-primary items jump to left in Mobile
7 replies · Started by Farokh on February 9, 2017
Hi Tom
I used yr suggested CSS below to have my sub-primary items float to Right in Mobile,
but it jumps to the left now, I guess it happened after the most recent GP update;
@media (max-width: 768px) {
.main-navigation li {
text-align: right !important;
}
}
best
Hi there,
Can you link me to your site?
Try this CSS instead:
@media (max-width: 768px) {
.main-navigation .main-nav .sf-menu>li {
text-align: right !important;
}
}
Done, many Thanks
Similarly, the css below Used to work for transparent Sub-primary menu, but stopped working a while age (primary menu is transparent-ok)
.main-navigation .main-nav ul ul li a {
background: rgba( 255,255,255, 0.9 );
}
cheers
You can choose transparency using the latest Colors add-on in Customize > Colors :)
:) thanks
Cheers
No problem!