Build a Bookstore Page - Step 15

Tell us what’s happening:

I don’t now what I make bad. I don’t understand task. Should I create a new DIV with the class card-container under the button or place the text under the first div class?
Please help me

Your code so far


<!-- User Editable Region -->

<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container">
  <div class="card" id="sally-adventure-book">
    <h2>Sally's SciFi Adventure</h2>
    <p>This is an epic story of Sally and her dog Rex as they navigate through other worlds.</p>
    <button class="btn">Buy Now</button>
  </div>
  <div class="card" id="dave-cooking-book">
    <h2>Dave's Cooking Adventure</h2>
    <p>This is the story of Dave as he learns to cook everything from pancakes to pasta, one recipe at a time.</p>
    <button class="btn">Buy Now</button>
</div>
    <div class="card-container"></div>
      <p>Review your selections and continue to checkout</p>
    <div class="btn-container"></div>
  </div>



<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build a Bookstore Page - Step 15
https://www.freecodecamp.org/learn/full-stack-developer/workshop-bookstore-page/step-15

Hi there and welcome to the forum!

No.
The scheme:

<div class="card-container">
...content...
</div>
...your p element goes here...
...your div with the class "btn-container" goes here...
1 Like

Hi. Thank you for your help. I am a new beginner here. I can’t get to the next task.

The newly added p element should be below the element with a class of card-container.

text

<div class="btn"
1 Like

You’re welcome!
Did you pass this task?
If you have questions about the next step, please use again Help button to create a new topic.
Thanks.

Unfortunately, I couldn’t make it. I can’t go on to the next task.

No problem, please share your full latest code.
How to do:

When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

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

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

// codes

<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container">
  <div class="card" id="sally-adventure-book">
    <h2>Sally's SciFi Adventure</h2>
    <p>This is an epic story of Sally and her dog Rex as they navigate through other worlds.</p>
    <button class="btn">Buy Now</button>
  </div>
  <div class="card" id="dave-cooking-book">
    <h2>Dave's Cooking Adventure</h2>
    <p>This is the story of Dave as he learns to cook everything from pancakes to pasta, one recipe at a time.</p>
    <button class="btn">Buy Now</button>
  </div>
  <div class="card-container">
 <p>Review your selections and continue to checkout.</p>
 <div class="btn-container"</div>

</div>
</div>

You still have this extra div above your p element.
Please reset the step and add only the paragraph and the second div after the last given closing div tag

<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container">
  <div class="card" id="sally-adventure-book">
    <h2>Sally's SciFi Adventure</h2>
    <p>This is an epic story of Sally and her dog Rex as they navigate through other worlds.</p>
    <button class="btn">Buy Now</button>
  </div>
  <div class="card" id="dave-cooking-book">
    <h2>Dave's Cooking Adventure</h2>
    <p>This is the story of Dave as he learns to cook everything from pancakes to pasta, one recipe at a time.</p>
    <button class="btn">Buy Now</button>
  </div>
</div>
  <div class="card-container">
    <p>Review your selections and continue to checkout.</p>
 </div>
  <div class="btn-container"
  </div>

Yes, this div with the class “card-container” is still here, why did you add it again?
So remove this extra div and its closing tag.

You need to add only the p element an the div with the class “btn-container”

Also your opening tag here is unclosed:

1 Like

-- removed solution --

Thank you very much. I can move on to the next task. I understand where I made mistakes.

1 Like

Congrats and happy coding!

But please don’t share your solutions, it is not allowed here on the forum.
Thank you.