Tell us what’s happening:
my css styles are not passing the test on the designing of the business card even though they are correct and i confirmed with other solutions on the forum. i don’t know the 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">
<style>
.business-card {
width: 300px;
background-color: red;
padding: 20px;
margin-top: 100px;
margin-left: auto;
margin-right: auto;
text-align: center;
font-size: 16px;
}
.portfolio-link {
text-decoration: none;
}
body {
background-color: rosybrown;
font-family: Arial, sans-serif;
}
.profile-image {
max-width: 100%;
}
a {
text-decoration: none;
}
p {
margin-top: 5px;
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="business-card">
<img class="profile-image" src="https://cdn.freecodecamp.org/curriculum/labs/flower.jpg" alt="a natural flower with pink petals">
<p class="full-name">Full-name</p>
<p class="designation">Designation</p>
<p class="company">Company</p>
<hr>
<p>Email address</p>
<p>Phone number</p>
<a class="portfolio-link" href="https://myportfolio.com">Portfolio</a>
<hr>
<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>
</div>
</body>
</html>
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Design a Business Card - Design a Business Card