-
AuthorPosts
-
March 12, 2020 at 8:13 pm #1192739
I’m trying to setup the following header layout logo left, widget right centered navigation below
before https://snipboard.io/kThWLs.jpg
after – https://snipboard.io/LmzW62.jpg
https://lsbtymkiw.hostworks.com/Thanks
March 13, 2020 at 7:35 am #1192828Hey hostworks,
Please try the following in Quick CSS under Enfold->General Styling:
#text-9 { position: absolute; right: 20px; }
Best regards,
RikardMarch 13, 2020 at 5:00 pm #1192913Perfect, thanks Rikard!
March 13, 2020 at 5:03 pm #1192914What about centering the nav options evenly spaced?
March 14, 2020 at 6:10 am #1193053Hi,
Thanks for the update. Do you mean that you want your menu items spread across the container with an even space between them? If so then it’s not something I would recommend that you do, since it’s difficult to get it responsive, and the menu would likely break if you add or remove menu items.
Best regards,
RikardMarch 15, 2020 at 1:41 am #1193153Can they just be centered a group in the container?
March 15, 2020 at 6:12 am #1193178Hi,
Yes, that should be possible. Please try this CSS:
.html_header_top.html_bottom_nav_header #header_main_alternate .main_menu { width: auto; float: none; display: table; margin: 0 auto; }
Best regards,
RikardMarch 16, 2020 at 3:08 am #1193366Perfecto! Thanks again Rikard!
Now, this has created a couple of conditions:
1) on viewing on tablet/landscape, I get a funny vertical black line on the logo, and a horizontal black line below the logo.
2) The schedule a call button overlays the burger menu on smaller screens ( I guess there is no room for the button on smaller screens). maybe I should eliminate the button on screens smaller than Tablet landscape (1024×768.
March 16, 2020 at 10:26 am #1193419Hi,
1. Please try this CSS as well:
@media only screen and (max-width: 1260px) { #top #header .av-main-nav > li > a { background-color: transparent; } }
2. It can be tricky to get the custom button and the burger menu to get along on small screens, maybe it would be better if we removed your custom button, then you add it to the page layout instead, and hide it for all screens except small ones?
If you like that idea then you can hide the widget on small screens using this:
@media only screen and (max-width: 767px) { #text-9 { display: none; } }
Best regards,
RikardMarch 16, 2020 at 6:07 pm #1193555This didn’t eliminate the black lines at 1024 x 768.
It did eliminate the custom button from small screens, but did not for Small tablet landscape (800×600) or Tablet portrait (768×1024). I even tried it down to 700.
- This reply was modified 4 years, 8 months ago by hostworks.
March 17, 2020 at 5:23 am #1193731Hi,
The CSS I gave you is being overridden, please try this instead:
@media only screen and (max-width: 1260px) { #top #header .av-main-nav > li > a { background-color: transparent !important; } }
Best regards,
RikardMarch 17, 2020 at 5:23 pm #1193857Not quite. check out the bottom three screen displays
March 18, 2020 at 6:11 am #1194017Hi,
Thanks for the screenshot, but that is not what I gave you CSS for. You have elements which will be covered on both sides, what exactly to you want to remove or change? If you want to remove your widget on tablet sizes as well then you can adjust the code I sent your previously:
@media only screen and (max-width: 1024px) { #text-9 { display: none; } }
Best regards,
RikardMarch 18, 2020 at 6:51 am #1194041March 19, 2020 at 4:31 am #1194295Hi,
No, we’re here to help with problems like these :-)
I can’t see the black line anymore on my end though, I checked in both regular and incognito windows. Also, how do you want to move the burger menu/your header widget so that they don’t clash? We can help you out with CSS for that, but we need to know what you would like first.
Best regards,
RikardMarch 19, 2020 at 5:04 am #1194298good question. I guess we’ll have to hide the button on Small tablet landscape (800×600) & tablet portrait (768×1024) & Tablet landscape (1024×768)(1024×768) because there’s no room. I don’t know how we can do it. we’ll have to put a link in the main navigation.
1) So, hide the button on these three layouts.
2) can I add schedule a Call as a custom link on the main nav after Contact Us and style it somehow so that it stands out?March 19, 2020 at 1:04 pm #1194406Hi,
Thanks for the update. Please try this to hide the widget when the mobile menu activates, and move the burger menu to the right:
@media only screen and (max-width: 1260px) { #text-9 { display: none; } .html_header_top #top .av_menu_left .main_menu { left: auto; right: 0; } }
I’m not sure how you want it to stand out, but you can select for the menu item to show as a button under Appearance->Menus. If that is not what you are looking for then please try to explain a bit further.
Best regards,
RikardMarch 19, 2020 at 3:41 pm #1194440Rikard,
I already have these items. Should this replace these existing entries?
/* fix for tablet issues */
@media only screen and (max-width: 1260px) {
#top #header .av-main-nav > li > a {
background-color: transparent !important;
}
}/* fix to eliminate the schedule button on smaller screens */
@media only screen and (max-width: 700px) {
#text-9 {
display: none;
}
}/* Code to place a widget to the right of the logo, when using a Logo left, Widget right and menu below. */
#text-9 {
position: absolute;
right: 20px;
}March 20, 2020 at 5:14 am #1194692Hi,
You can remove this:
/* fix to eliminate the schedule button on smaller screens */ @media only screen and (max-width: 700px) { #text-9 { display: none; } }
Then replace this:
@media only screen and (max-width: 1260px) { #top #header .av-main-nav > li > a { background-color: transparent !important; } }
With this:
@media only screen and (max-width: 1260px) { #text-9 { display: none; } .html_header_top #top .av_menu_left .main_menu { left: auto; right: 0; } #top #header .av-main-nav > li > a { background-color: transparent !important; } }
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.