Design a Business Card - Design a Business Card

Tell us what’s happening:

Failed:32. After the second hr element, there should be a div element with a class attribute with a value of social-media.
the div element after the second hr element already have the social-media class attribute but it still doesn’t work

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 flower">
        <p class="full-name">Nguyên</p>
        <p class="designation">Student</p>
        <p class="company">KMA</p>
        <hr>
        <p>nguyen2791661@gmail.com</p>
        <p>0365496380</p>
        <a href="https://www.youtube.com/">Portfolio</a>
        <hr>
    </div>
    <div class="social-media">
      <h2>Connect with me</h2>
      <a href="https://twitter.com">Twitter</a>
      <a href="https://linkedin.com">LinkedIn</a>
      <a href="https://github.com">GitHub</a>
    </div>
</body>

</html>
/* file: styles.css */
body{
  background-color: rosybrown;
    font-family: Arial, sans-serif;
}
p{
  margin-top:5px;
  margin-bottom:5px;
}
a{
  text-decoration: none;
}
a:hover{
  text-decoration: none;  
}
.business-card{
  width:300px;
  padding:20px;
  margin-top:100px;
  text-align:center;
  font-size:16px;
  margin-left:auto;
  margin-right:auto;
  background-color:white;
}
.profile-image{
  max-width:100%;
}

Your browser information:

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

Challenge Information:

Design a Business Card - Design a Business Card

Your .bussiness-card div should contain all your business card content!

But you sepereate .social-media div with .bussiness-card div.

.social-media div shoul be nested within!

Happy Coding! Welcome!

1 Like

thank you, problem solved.