Challenge Project Build a website design system

Hello, I was wondering if anyone could let me know if I have started my code off right for this challenge project.

<head>
  <title>My Website Style Guide</title>
  <link rel="stylesheet" href="styles.css" />
  <link rel="preconnect" href="https://fonts.googleapis.com" />
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link
    href="https://fonts.googleapis.com/css2?family=Merriweather:ital@0;1&family=Roboto&family=Space+Mono&family=Work+Sans:wght@400;500;800&display=swap"
  />
</head>
<body>
  <div class="box"></div>
  <p>I am a box-model!<p>
</body>

*{
  box-sizing: border-box;
}
.box{
  background-color: yellow;
  width: 250px;
  height: 150px;
  margin: 10px;
  padding: 20px;
  border: 15px dotted green;
  border-color: green;
  padding: 5px;
}

You have CSS in the same file as your HTML without a style tag, so the styles won’t import correctly. Either move your CSS to the styles.css file you are importing or wrap your CSS in and that should style it correctly.

Also, your paragraph text is outside the box div, so it won’t display inside of it, if that’s what you were wanting.

oh ok. Thank you so much for your help.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.