Tagged: spacing
I have 2 buttons as part of my top nav bar. When the bar is minimized or shrunk then the top and bottom margins around the buttons disappear. How can i get those spaces to remain, so that when the bar shrinks, the white space above and below the buttons remains?
Here’s the link – http://site.jewishexperience.org/
Hey asinger777!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
@media only screen and (max-width: 990px) {
#top #wrap_all .header_color .av-menu-button-colored > a .avia-menu-text, #top #wrap_all .header_color .av-menu-button-bordered > a .avia-menu-text {
padding: 14px!important;
}}
Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.
Regards,
Yigit
This code did not fix the problem. When I scroll down the spaces disappear. Looks like the problem is related to the container height or line-height.
Hi!
The header height is a bit too short for the buttons. If you really need the header to be that short, please add this in the Quick CSS field:
.header-scrolled .av-menu-button a, .header-scrolled .av-menu-button a .avia-menu-text {
height: 20px !important;
line-height: 20px !important;
padding: 5px 8px;
}
Or increase the header height.
Cheers!
Ismael