Build a Bookstore Page - Step 15

Tell us what’s happening:

Below the element with the class card-container, add a new p element with this text: Review your selections and continue to checkout. Below the p element, create a div element with the class attribute set to btn-container. This container will group your navigation button elements. Apparently the “P” element is wrong? Does anyone know what is wrong?
I have wrote:

<div class="card-container"></div>
<p>Review your selections and continue to checkout.</p>
<div class="btn-container"></div>

Challenge Information:

Build a Bookstore Page - Step 15

Hi there and welcome to the forum!

Why did you duplicate card-container?
You have fulfilled the remaining requirements correctly

Hi.

I’ve removed card-container to see if that has helped, but the ‘Check your code’ now comes back with “The newly added p element should be below the element with a class of card-container.”

Please show your full latest code

<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container"></div>
  <p>Review your selections and continue to checkout</p>
  <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="btn-container"></div>

Why did you close card-container here?
Please reset the step and add new elements after card-container’s closing div on the 15th line.
You don’t need to change the given code

Thank you. I’ve now amended it, however it comes back again with ‘Your new p element’s text should be Review your selections and continue to checkout.

I have wrote:

Review your selections and continue to checkout.

If you need more help, please always share your full latest code

<h1>XYZ Bookstore</h1>
<p>Browse our collection of amazing books!</p>
<div class="card-container">
  <p>Review your selections and continue to checkout</p>
  <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="btn-container">
</div>

You ignored my instruction for adding new elements after card-container’s closing div on the 15th line
Please reset the step and try again

I’ve done the amendment that you had recommended and now it works! Thanks :slight_smile:
– removed –

1 Like

Congrats!
It is great that you solved the challenge, but please don’t share your solutions, it is not allowed here on the forum.
Thanks.

1 Like