Design a Business Card - Design a Business Card

Tell us what’s happening:

It keep failing me on the font style and the underlines. can anyone explain what i am overlooking? i have done a search here on freecodeaccademy and a net search. I still dont see why it is failing me.

Your code so far

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

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

<body>
<div class="business-card" />
<img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="Profile Image" />
<p class="full-name">Alex Scott</p>
<p class="designation">Full Stack Dev</p>
<p class="company">Wild Flower Dev Solutions inc.</p>
<hr>
<p>WDev@example.com</p>
<p>(444)678-9562</p>
<a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg"/>Portfolio</a>
<hr>
<div class="social-media">
    <h2>Connect with me</h2>
    <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg">Twitter</a>
    <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg">LinkedIn</a>
    <a href="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg">GitHub</a>
</body>

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

Your browser information:

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

Challenge Information:

Design a Business Card - Design a Business Card

Just for a little more context have tried both (.social-media) and (social-media) respectively.

Never mind about the link issue I have solved that. I don’t know why it makes me use (a) in the style sheet instead of the class name but that solved it.

Hi there,

First of all, congratulations for figuring out what you needed to do to move on!

I just want to make sure you’re clear about a couple of the things you talked about.

You needed to use an a type selector because the underline you needed to remove is on the text that the a element is wrapped around.

The .social-media div only contains those a elements, but it can also contain other elements like that h2 element. So that would not specifically target the elements you needed to target.

Also, you mentioned you tried both .social-media and social-media as selectors. Please keep in mind that class selectors are always prepended with a period.

Happy coding!