Home › Forums › Support › Underline on primary nagivation fit to text This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts May 22, 2020 at 12:58 pm #1297188 Ricardo Hi, I was searching for some CSS to tweak the primary navigation text and found this on the forum: .main-navigation .main-nav ul li[class*=”current-menu-“] > a { border-bottom: 2px solid #ffffff; } Everything ok, but is it possible to define the underline to fit the text width and not the text area? Thanks a lot!! May 22, 2020 at 1:11 pm #1297210 LeoStaff Customer Support Hi there, What about something like this? https://docs.generatepress.com/article/adding-menu-hover-animation/ Let me know π May 22, 2020 at 2:08 pm #1297264 Ricardo Hi, Thank you! That gives a nice effect but it doesn’t cover all the text when you have 2 words or one big word. But it’s ok like that π Best regards, Ricardo May 22, 2020 at 10:28 pm #1297512 LeoStaff Customer Support No problem π Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In