Learn Typography by Building a Nutrition Label - Step 33

Tell us what’s happening:
said my p element should have the text Calories. what am i doing wrong?

Your code so far

230

Amount per serving

Calories

```html Nutrition Label

Nutrition Facts

8 servings per container

Serving size 2/3 cup (55g)

<div class="calories-info">
  <div class="left-container"><span>230
    <h2 class="bold small-text">Amount per serving</h2>
    <p>Calories</p>
  </div></span>
</div>
```
/* file: styles.css */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
}

.label {
  border: 2px solid black;
  width: 270px;
  margin: 20px auto;
  padding: 0 7px;
}

header h1 {
  text-align: center;
  margin: -4px 0;
  letter-spacing: 0.15px
}

p {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.divider {
  border-bottom: 1px solid #888989;
  margin: 2px 0;
}

.bold {
  font-weight: 800;
}

.large {
  height: 10px;
}

.large, .medium {
  background-color: black;
  border: 0;
}

.small-text {
  font-size: 0.85rem;
}

.calories-info h2 {
  margin: 0;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Learn Typography by Building a Nutrition Label - Step 33

Link to the challenge:

This entire block of code is the .left-container element.
Therefore the new span should be created below it.

4 Likes

That didn’t work either

please respond with your code instead of just a comment. We need to see what you have tried.

Thank you for this reply .it worked for me

1 Like

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