- This topic has 12 replies, 2 voices, and was last updated 5 years, 7 months ago by
Tom.
-
AuthorPosts
-
April 22, 2020 at 1:19 am #1248871
Leon
Hi,
My header has a 20px margin to the left.
The container also has a 20px margin to the left.
Inbetween is the navigation bar.I try to add the same 20px margin to the navigation bar, but that seems impossible. There doesn’t seem to be a setting for this, and I can’t find the right css tag either.
I hope you can help.
Thanks,
LeonApril 22, 2020 at 9:09 am #1249475Leo
StaffCustomer SupportHi there,
How can I see the site in question?
April 24, 2020 at 10:26 am #1253907Leon
You’ll have to login as admin, since the site is behind a maintenance plugin.
http://www.mbo-today.nl/test / admin / ***
Thanks, Leon
April 24, 2020 at 10:26 am #1253908Leon
You’ll have to login as admin, since the site is behind a maintenance plugin.
http://www.mbo-today.nl/test/wp-admin / admin / *****
How do I discreetly send you the password?
Thanks, Leon
April 24, 2020 at 4:30 pm #1254312Tom
Lead DeveloperLead DeveloperPlease send the username and password through this form: https://generatepress.com/contact
Be sure to mention this topic.
Thanks!
April 29, 2020 at 9:23 am #1261542Tom
Lead DeveloperLead DeveloperSo instead of trying to add margin to the navigation, I would:
1. Remove the margin added to the container.
2. Set the header to “Full” width
3. Set the inner header to “Contained”
4. Make sure your header has 20px padding all around
5. Add this CSS:.inside-header { box-sizing: content-box; }May 1, 2020 at 2:49 am #1264415Leon
Thanks Tom,
This has solved my problem in desktop view. Unfortunately, in tablet view the text has no margin left now. I can set a margin for the phone, but not for the tablet. Is there a way to fix that?
Or should this be another topic?
Thank you, Leon
May 1, 2020 at 9:22 am #1265143Tom
Lead DeveloperLead DeveloperYou could try adding this:
@media (max-width:1130px) and (min-width: 769px) { .site-content { padding-left: 20px; } }May 1, 2020 at 1:26 pm #1265432Leon
Thank you very much, this worked very well.
Kind regards, LeonMay 1, 2020 at 5:42 pm #1265593Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
October 1, 2020 at 1:31 am #1466657Leon
Hi,
Sorry to reopen this thread, but I’d like to add a question to it.
Our site is online now and works very well. There are two cosmetic flaws we’d like to fix.We added (as you suggested) this css
@media (max-width:1130px) and (min-width: 769px) {
.site-content {
padding-left: 20px;
}
}That worked well.
Looking at the site on various phones and tablets we noticed that there is no margin on the right. So I thought, I addpadding-left: 20px;
to the css you provided, but that didn’t do anything.
I hope you still have acces, if necessary.(My other question is a different topic.)
Thanks, Leon
October 1, 2020 at 3:35 am #1466836Leon
Never mind, I’ve already managed to fix it.
October 1, 2020 at 10:21 am #1467736Tom
Lead DeveloperLead DeveloperGlad you got it sorted 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.