- This topic has 6 replies, 2 voices, and was last updated 6 years ago by
Support. This post has been viewed 1018 times
-
AuthorPosts
-
July 10, 2020 at 3:28 am #10033763
jennhelmond
ParticipantHi. I am hoping to reduce the space above and below the links in the navigation bar, but can’t seem to find the right combination of CSS to change to achieve it! I want to reduce the padding above and below to about 12px, and then have the height of the header bar adjust accordingly. If you could point me towards the right lines of code to change, it would be really appreciated.
July 10, 2020 at 5:24 am #10033764Support
KeymasterHello, first thanks for your purchase.
At really the current spacing is equivalent to 12px. If you want to reduce the height of navigation items, here’s the code you need:
Add in (css/custom.css):
@media(min-width: 992px) { #header .header-nav-bar .header-nav { min-height: 0 !important; } #header .header-nav.header-nav-spaced nav > ul > li > a { height: 40px !important; min-height: 0 !important; } }Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
July 10, 2020 at 5:26 am #10033766jennhelmond
ParticipantThat worked great for the navigation elements – they are now shallower. However, the header bar itself is still the same height! I have uploaded the revised style sheet and page to the same location, for you to see.
Thanks in advance!
July 10, 2020 at 5:30 am #10033767jennhelmond
ParticipantIt almost looks like it is drawing the height from the javascript to enable the sticky header, because in the coding of the active page, it has a height defined right after the call for enabling sticky header, and that style isn’t present on my HTML file.
July 10, 2020 at 5:34 am #10033768Support
KeymasterThis reply has been marked as private.July 10, 2020 at 5:35 am #10033770jennhelmond
ParticipantI figured it out. For some reason when I removed the !important tag from the height property of this code, it allowed the navigation bar to resize to the height of the elements:
@media (min-width: 992px) {
#header .header-nav-main {
display: flex !important;
height: auto !important;
}Thanks again!
July 10, 2020 at 6:11 am #10033771Support
KeymasterHello,
Great!
If you need further assistance, feel free to contact us.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
-
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.