megpow Posted March 7, 2022 Share Posted March 7, 2022 Site URL: https://mushroom-turquoise-9rne.squarespace.com/ Password: siera Hoping to get some help as I'm pretty new to coding... I needed to create two buttons in my header, so I followed someone else's advice and converted the last two of my navigation links into buttons. Now I need to move them to the right side of the page so they're not in line with the rest of the nav links on the left side of the page. Here is the code I use to convert the two nav links into buttons. Thank you in advance!! // 2 Navigation Buttons // .header-nav-item:nth-child(5) a, .header-nav-item:nth-child(6) a { background: #912812 !important; color: #FFFFFF !important; width: auto; border-radius: 10px; text-align: center !important; text-transform: uppercase; padding: 12px !important} // Navigation Padding // .header-nav-item a { padding: 3px !important; } // Active Navigation Line // .header-nav-item--active a { background-image: none !important; } Link to comment
tuanphan Posted March 10, 2022 Share Posted March 10, 2022 Don't remove any code in your current code. Add to Design > Custom CSS div.header-nav-item:nth-child(6) { position: absolute; right: 0; } div.header-nav-item:nth-child(5) { position: absolute; right: 12vw; } 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