Miss Steegs Posted March 26, 2015 Share Posted March 26, 2015 Working in Aviator and I know this is not standard functionality but it must be possible with CSS. I want a line under the active page in the navigation instead of it being a different colour. How do I achieve this? Link to comment
clayyount Posted March 26, 2015 Share Posted March 26, 2015 Use this in your Custom CSS, changing YOUR-LINK-COLOR with your desired color. #main-navigation ul li.active-link>a{ text-decoration:underline; color:YOUR-LINK-COLOR; } Link to comment
Miss Steegs Posted April 6, 2015 Author Share Posted April 6, 2015 Thank you Ghostcat that works! How can I however make the line appear a little bit lower, so have a bit of spacing between the text and the underline? Also I noticed that it does only appear once you have clicked on an element so not when you first land on a page. Is that fixable? Link to comment
clayyount Posted April 6, 2015 Share Posted April 6, 2015 You can't change the spacing of the text-decoration underline since that is determined by the font. However, you can use a 1px bottom border instead like so: #main-navigation ul li.active-link>a{ border-bottom: 1px solid YOUR-LINK-COLOR; color:YOUR-LINK-COLOR; padding-bottom:1px; } Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.