- This topic has 13 replies, 4 voices, and was last updated 1 year, 7 months ago by
David.
-
AuthorPosts
-
November 23, 2020 at 9:00 am #1542687
Jurjen Brouwer
Last week David helped me te remove the padding on the right site of the navigation bar.
But what would be the CSS to remove padding on the left side?
Please help….
JurjenNovember 23, 2020 at 11:49 am #1542919Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 23, 2020 at 1:04 pm #1543039Jurjen Brouwer
November 23, 2020 at 2:02 pm #1543099Elvin
StaffCustomer SupportHi,
I’ve checked your navbar and it doesn’t seem to have any padding but rather, a
margin-left:auto;
that adds space to make the nav menu items appear centered so it looks visually balanced.To clarify: Do you want to remove this
margin-left:auto;
instead?Removing it will result to this: https://share.getcloudapp.com/DOuoW2l2
If this is the desired effect, you can add this CSS:
nav.main-navigation .inside-navigation { margin-left: unset; }
A wise man once said:
"Have you cleared your cache?"November 23, 2020 at 10:26 pm #1543520Jurjen Brouwer
No, that’s not the effect we wanted….
We would like to have “Home” a bit more to the left , so it is in the same line as the logo and the W from Warehousing.
Is that possible?The solution for the right side David send worked. Now looking for the solution on the left side
@media(min-width: 1100px) {
.main-navigation .main-nav ul li:last-child a {
padding-right: 0;
}
}November 24, 2020 at 2:09 am #1543752David
StaffCustomer SupportHi there,
change your current CSS to this:
@media(min-width: 1100px) { .main-navigation .main-nav > ul > li:first-child a { padding-left: 0; } .main-navigation .main-nav > ul > li:last-child a { padding-right: 0; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 24, 2020 at 3:42 am #1543885Jurjen Brouwer
Thanks again, David
Happy !!!!!!!November 24, 2020 at 5:08 am #1544015David
StaffCustomer SupportGlad to be of help
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 25, 2020 at 2:14 am #1545758Jurjen Brouwer
The nav.bar is just how we wanted it to be , but :
the first item in de sub menu seems to be affected too. ๐
Please help (again)
JurjenNovember 25, 2020 at 2:20 am #1545777David
StaffCustomer SupportI edited the code here:
https://generatepress.com/forums/topic/navigation-bar-without-padding-2/#post-1543752Let us know
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 25, 2020 at 6:45 am #1546219Jurjen Brouwer
Didn’t work, the first item in the dropdown menu was out of line (completely left)
I removed the CSS….November 25, 2020 at 7:35 am #1546485David
StaffCustomer SupportAnother edit made here:
https://generatepress.com/forums/topic/navigation-bar-without-padding-2/#post-1543752
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 25, 2020 at 7:45 am #1546502Jurjen Brouwer
That seems to do the trick….. Thanks…
November 25, 2020 at 8:35 am #1546601David
StaffCustomer SupportGlad to be of help
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.