- This topic has 9 replies, 2 voices, and was last updated 3 years, 12 months ago by Leo.
-
AuthorPosts
-
April 30, 2020 at 11:40 am #1263678Anil
Hi
logo margin is not set as per container space, due to this logo is not aligned with page content
I tried following css but behaving erratic between 1300 to 1340 pixel size
@media (max-width: 1300px){ #site-navigation .navigation-branding, #sticky-navigation .navigation-branding { margin-left: 20px; } }
please advise
April 30, 2020 at 4:59 pm #1263962LeoStaffCustomer SupportHi there,
Sorry is this CSS added by you currently?
@media (max-width: 1310px) { #site-navigation .navigation-branding, #sticky-navigation .navigation-branding { margin-left: 10px; } }
April 30, 2020 at 8:43 pm #1264135AnilNo Leo.
I just checked that css you mentioned here is under “generate-navigation-branding-inline-css”
I checked in customizer, there is no such setting….
Please guide further…
May 1, 2020 at 12:48 am #1264264AnilHi
I changed the container width to 1240 then it is generating automatically following css@media (max-width: 1250px){#site-navigation .navigation-branding, #sticky-navigation .navigation-branding{margin-left:10px;}}
Similarly happening with width 1300, its generating css
@media (max-width: 1310px) { #site-navigation .navigation-branding, #sticky-navigation .navigation-branding { margin-left: 10px; } }
something happening with generate-navigation-branding-inline-css…
I believe Tom can tell what’s happening in functions at what level ???
May 1, 2020 at 8:11 am #1265023LeoStaffCustomer SupportDid you change the setting here?
https://docs.generatepress.com/article/mobile-navigation/#using-gp-premiumLet me know π
May 1, 2020 at 9:04 am #1265115AnilNo Leo, I just re-checked it is default as 768px
May 1, 2020 at 9:18 am #1265140AnilI just re-created the navigation bar and the result is same.
I believe “generate-navigation-branding-inline-css” function has something which adds that particular media call adding 10px in container width….
May 1, 2020 at 10:21 am #1265239LeoStaffCustomer SupportOk that CSS is just adding some margin to the left of the logo so when the screen width is smaller than the container width so the logo doesn’t position right along the edge of the screen.
This CSS should work with your current set up:
@media (max-width: 1250px) { #site-navigation .navigation-branding, #sticky-navigation .navigation-branding { margin-left: 20px; } }
Let me know if this makee sense π
May 1, 2020 at 11:12 am #1265295AnilThanks, following css is helping
.main-navigation:not(.grid-container):not(.mobile-header-navigation) .inside-navigation.grid-container .navigation-branding { margin-left: 20px; } @media (max-width: 1250px) { #site-navigation .navigation-branding, #sticky-navigation .navigation-branding { margin-left: 20px; } }
May 1, 2020 at 11:27 am #1265319LeoStaffCustomer SupportGlad to hear π
-
AuthorPosts
- You must be logged in to reply to this topic.