Cancid Posted May 24, 2022 Share Posted May 24, 2022 Site URL: https://koi-paddlefish-bb2e.squarespace.com/ Hello, I have managed to create a desktop burger menu using the following code: @media only screen and (min-width: 760px) { .header .header-burger { display:flex; margin: 30px; } .header-nav {display:none} .header--menu-open .header-menu { display: flex; opacity: 1; visibility: visible; text-align: left; } .header-menu-actions { display: none; } .header-menu-cta { display: none; } .header-menu-nav-item a { font-size: 45px; line-height: .8; } } However, the text appears on the far left side of the screen due to it being left-aligned. I would like to keep the text left-aligned, but center it to the screen. Any help would be appreciated! Site Password: HillMountainRiver3 Link to comment
Solution tuanphan Posted May 26, 2022 Solution Share Posted May 26, 2022 Add to Design > Custom CSS @media screen and (min-width:992px) { div.container.header-menu-nav-item { max-width: 40%; margin: 0 auto; } } Cancid 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment