JennWalker Posted December 3, 2021 Share Posted December 3, 2021 Does anyone know code to center navigation links. I want the logo left, button right, and links centered. The logo and button are where I want them but links are also right aligned. Thanks! Link to comment
Wolfsilon Posted December 3, 2021 Share Posted December 3, 2021 Jenn, Could you please provide the URL to your website so that we can provide an accurate code for you to use? Thank, Dan Link to comment
JennWalker Posted December 3, 2021 Author Share Posted December 3, 2021 2 minutes ago, Wolfsilon said: Jenn, Could you please provide the URL to your website so that we can provide an accurate code for you to use? Thank, Dan https://khaki-elk-54rm.squarespace.com/ password is Brad. Thank you! Link to comment
Wolfsilon Posted December 3, 2021 Share Posted December 3, 2021 Try this: .header-layout-nav-right .header-nav { text-align: center; } Link to comment
JennWalker Posted December 3, 2021 Author Share Posted December 3, 2021 8 minutes ago, Wolfsilon said: Try this: .header-layout-nav-right .header-nav { text-align: center; } That worked, thank you! Do you know how to increase the spacing a bit between the links? Link to comment
Wolfsilon Posted December 3, 2021 Share Posted December 3, 2021 In that case, for more control over your spacing. I've got another solution for you: /* Tweak margin right below to your liking */ .header-nav-item { margin-right: 2%; } .header-nav-list { width: 100%; } .header-layout-nav-right .header-nav-list { justify-content: center; } Link to comment
JennWalker Posted December 3, 2021 Author Share Posted December 3, 2021 19 minutes ago, Wolfsilon said: In that case, for more control over your spacing. I've got another solution for you: /* Tweak margin right below to your liking */ .header-nav-item { margin-right: 2%; } .header-nav-list { width: 100%; } .header-layout-nav-right .header-nav-list { justify-content: center; } Perfect, thanks again!! Link to comment
JennWalker Posted December 4, 2021 Author Share Posted December 4, 2021 2 hours ago, Wolfsilon said: 😄 Sorry, one more question! Do you know how to get a black background around the links only? Like this: Link to comment
tuanphan Posted December 8, 2021 Share Posted December 8, 2021 On 12/4/2021 at 9:04 AM, JennWalker said: Sorry, one more question! Do you know how to get a black background around the links only? Like this: The image error. If you still need help, can you check it again? 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