I am stuck. Help

<div class="calories-info">
      <div class="left-container">
        <span>230</span>
        <h2 class="bold small-text">Amount per serving</h2>
        <p>Calories</p>

      </div>
<div class="calories-info">
      <div class="left-container">
        <span>230</span>
        <h2 class="bold small-text">Amount per serving</h2>
        <p>Calories</p>
      </div>

Hi @richardgodwin40

So the forum can assist please post your full code.

Use the following method to post code to the forum:

  1. On a separate line type three back ticks.
  2. On a separate line paste your code.
  3. On the last line type three back ticks. Here is a single back tick `

Happy coding

1 Like

If you are stuck with a particular challenge, please use the Help button on the challenge as that will do a lot to help us help you get the correct answer.

If you don’t see the Help button yet, you must submit your code a few times before it appears.

image

1 Like

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like
<div class="calories-info">
      <div class="left-container">
        <span>230</span>
        <h2 class="bold small-text">Amount per serving</h2>
        <p>Calories</p>
      </div>
    </div>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Nutrition Label</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet">
  <link href="./styles.css" rel="stylesheet">
</head>

<body>
  <div class="label">
    <header>
      <h1 class="bold">Nutrition Facts</h1>
      <div class="divider"></div>
      <p>8 servings per container</p>
      <p class="bold">Serving size <span>2/3 cup (55g)</span></p>
    </header>
    <div class="divider large"></div>
<div class="calories-info">
      <div class="left-container">
        <h2 class="bold small-text">Amount per serving</h2>
      </div>
    </div>
 </div>
</body>
</html>

Step 33
Below your .small-text element, create a new p element with the text Calories. Also below the .left-container element, create a new span element with the text 230.

In the future, please provide the link to the lesson you are working.
That way we will be able to better assist you. :+1:

I was able to find the challenge link and have updated your post

Your issue is here

You placed that in the wrong spot

The directions say to create a span element below the .left-container element,

But right now you are nesting the span element inside the .left-container element.

You need to move your span element below the .left-container element to pass the test

1 Like

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