skip to Main Content

How can I make the line under the links the same size as the text using CSS?

<div className={styles.container}> <ul className={styles.links}> <li className={styles.link}> <a href="/">Home</a> </li> <li className={styles.link}> <a href="/portfolio">Portfolio</a> </li> <li className={styles.link}> <a href="/skills">Skills</a> </li> <li className={styles.link}> <a href="/contact">Contact</a> </li> </ul> </div> .link a { position: relative; display: inline; } .link a:hover { transition: all 0.3s…

VIEW QUESTION
Back To Top
Search