This is failing on adding a 1px dashed slategrey border to the hr elements.
<!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="Open flower">
<p class="full-name">Matt Brambley</p>
<p class="designation">Developer</p>
<p class="company">MBWebDev</p>
<hr>
<p>Not-working@email.com</p>
<p>01234567890</p>
<a href="www.google.com" target="_blank">Portfolio</a>
<hr>
<div class="social-media">
<h2>Connect with me</h2>
<a href="www.x.com">Twitter</a>
<a href="www.linkedin.com">LinkedIn</a>
<a href="www.github.com">GitHub</a>
</div>
</div>
</body>
</html>
body {
background-color: rosybrown;
font-family: Arial, sans-serif;
}
p {
margin: 5px auto;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.business-card {
width: 300px;
background: rgba(126,226,226, .5);
padding: 20px;
margin: 100px auto;
text-align: center;
font-size: 16px;
}
img {
max-width: 100%;
}
hr {
border-top: 1px dashed slategrey;
}
When i check dev tools, it has the style there and if i use a different color it has the border in place.
I also tried adding a class to the hr but sadly this did not woek either.
Thanks in advance.