Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

Have tried using others’ examples as well as tried resetting both browser and computer. I just need a hint. Thanks in advance!

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">
    <title>Blog Post Card</title>
    <link style="styles.css"/>
</head>
<body>
<div class="blog-post-card">
    <img class="post-img" src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
<div class="post-content">
    <h2 class="post-title">Blog Post Title Obviously</h2>
    <p class="post-excerpt">Post Excerpt obviously summarising the blog post contents</p>
    <a class="read-more">Read More</a>
</div>  
</div>
</body>
</html>
/* file: styles.css */
/* file: styles.css */
.blog-post-card {
  background: white;
  border-radius: 5px;
  width: auto;
  height: auto;
  text-align: center;
  margin: 100px;
  background-position: center;
}

.post-img {
  background-size: cover;
  border-bottom: 2px solid #191970;
  max-width: 100%;
  max-height: 100%;
}

.post-content {
  text-align: center;
  font-family: arial;
  padding: 50px;
}

.post-title {
  color: blue;
}

.post-excerpt {
  color: purple;
}

.read-more {
  background: blue;
  color: white;
  margin: 10px;
  padding: 10px;
  border-radius: 15px;
  display: inline-block;
}

.read-more:hover {
  background: black;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Safari/605.1.15

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

Hi.

Many boxes are unchecked. Which one do you need help with?

Hi! Maybe to start with solving the .blog-post-card css section?

I see the prolem, your code is ok, but their is an issue with how you’ve linkked your files.

Oh! Thanks so much! I started to get cross-eyed from all the different words used. Thanks again

1 Like

This solved my issue!