Design a Business Card - Design a Business Card

Tell us what’s happening:

Hi everybody! I could not pass this lesson. what is my mistake? can somebody explain for me?
7. The links of the page should have no underline by default.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div class="business-card">
      <main>
          <img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="profile image"/>
            <p class="full-name">Harun SULAR</p>
            <p class="designation">Full Stack Developer</p>
            <p class="company">Tubitak</p>
       <hr>      <p class="email">ascf@gmail.com</p>
            <p class="phone-number">05522552525</p>
            <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" style="text-decoration:none">Portfolio</a>

            <hr>
         <div class="social-media"><h2>Connect with me</h2>
         <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" style="text-decoration:none">Twitter</a>
         <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" style="text-decoration:none">LinkedIn</a>
         <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" style="text-decoration:none">GitHub</a></div></div>
      </main>

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

p {
  margin-top: 5px;
  margin-bottom: 5px;
} 

.business-card {
  width: 300px;
  background-color: burlywood;
  margin: 100px;
  padding: 20px;
  max-width: 500px;
  text-align: center;
  font-size: 16px;
  margin-right: auto;
  margin-left: auto;
}

img {
  width: 100px;
  margin-left: auto;
  margin-right: auto;
}

a:hover{
text-decoration:underline!important;}

hr {
  height: 2px;
  border-color: slategray;
  border-style: dashed; border-width: 1px;
}

h2 {
  font-family: Arial;
  font-size: 20px;
}


Your browser information:

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

Challenge Information:

Design a Business Card - Design a Business Card

what have you tried to solve this issue? can you explain in your own words?

i stucked 7th step. that step wants to the links must not have underline by default so i did it with this code (style=“text-decoration:none”) . what can i do any more for that?

Why did you use inline styles instead of external in this case? You need to keep all your styles in styles.css file

1 Like

thank you very much. that’s the my mistake. I solved it.

1 Like