Design a Business Card - Design a Business Card

Tell us what’s happening:

step.18 portfolio is still underlined for some reason?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Business Card</title>
    <link rel="stylesheet" href="styles.css">
</head>

<body>
<div class="business-card">
    <img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="a beautiful long flower">
    <p class="full-name">robert</p>
    <p class="designation">idk mu designiation</p>
    <p class="company"> i dont own a companys</p>
    <hr>
    <p>user@mail.com</p>
    <p>555-555-5555</p>
    <a class="portfolio-link" href="https://weather.sample.com/profit/lace.aspx">Portfolio</a>
    
    <hr>
    <div class="social-media">
        <h2>Connect with me</h2>
        <a href="http://sample.edu/truck">Twitter</a>
        <a href="http://sample.org/expansion?tree=marble">LinkedIn</a>
        <a href="http://www.sample.org/yak?leg=credit">GitHub</a>
    </div>

</div>
</body>

</html>
/* file: styles.css */
body {
  background-color: rosybrown;
  font-family: Arial, sans-serif;

}

.business-card {
  padding: 20px;
  background-color:
  pink;
  width: 300px;
  margin-top: 100px;
  text-align: center;
  font-size: 16px;
  margin-right: auto;
  margin-left: auto;
}
.profile-image{
  max-width: 100%;

}
p {
margin-top: 5px;
margin-bottom: 5px;
}
.social-media a {
  text-decoration: none;
}

.portfolio-link a {
  text-decoration: none !important;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36

Challenge Information:

Design a Business Card - Design a Business Card

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-business-card/6690e10ebe2181212abc9652.md at main · freeCodeCamp/freeCodeCamp · GitHub

there’s a difference in the hierarchy of these classes. There’s a class containing links and there’s a link which has a class.

.social-media a {
  text-decoration: none;
}

.portfolio-link a {
  text-decoration: none !important;
}
<a class="portfolio-link" href="https://weather.sample.com/profit/lace.aspx">Portfolio</a>
    
    <hr>
    <div class="social-media">
        <h2>Connect with me</h2>
        <a href="http://sample.edu/truck">Twitter</a>

All links on the page should not be underlined.

Can you think of a more general way of targeting ALL links, instead of specifically targeting these classes?

Welcome to the forum @imti24,

Try targeting just the anchor tag in a selector to remove the underlines.

Happy coding