Archived topic
hooked element alignment
5 replies · Started by Radek on October 22, 2020
Hi, I hooked button made by elements/block to "generate_inside_navigatin". Navigation is about header and aligned to right. I need my button floating left (not before first navigation item, but on the left side of my container). I give Element ID to my button and try use `#FB-nav-button {
float: left;
}`
but it does not work.
What is the right solution to achieve this ?
Thanx Radek
Hi there,
try this CSS to force the element over to the left:
#site-navigation .inside-navigation .main-nav {
margin-left: auto;
}
Hi David, works fine even I could not see the reason if I check code+CSS through inspect element :)
Glad to be of help.
And some what will be working with sticky + mobile menu too ? Mayby use new menu_bar_items hook ?...
Yeah the menu_bar_items hook will apply it to the desktop and mobile navs.