Build a Bookstore Page - Step 15

Tell us what’s happening:

I have moved the right code around, I have put the code into the spot it is asking but it will not work. Nothing I do will work, can someone offer some advice?

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>
    <p> Review your selections and continue to checkout. </p>
    <div class="btn-container" </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>



<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15

Challenge Information:

Build a Bookstore Page - Step 15

Hi there and welcome to the forum!
Your p and div elememts go after the last div in the given code, see the scheme:

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

So please reset the lesson and try again

Hmm, I just reset it and it still will not work.

Show your latest code, please

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 (').

<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>
  <p> Review your selections and continue to checkout. </p>
  <div class="btn-container"</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>

I see no changes at all, did you share the right code?

Wasn’t the p and div element supposed to go after the after the button class element? I thought that was what was supposed to be changed

No, you shouldn’t change the given code

So im confused, is the placement of the p and div element incorrect? I thought it was supposed to go after the last “/div” in the class container.

Nope, it is supposed to go after the closing div of card-container, on the 15th line of code

So like this? I moved it to the bottom and it won’t take it.

<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="btn-container"</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>
<p>Review your selections and continue to checkout. </p>
  <div class="btn-container" </div>

you have the element with btn-container twice, and the syntax is wrong, you must always close a tag

Very good, but:

  1. Unclosed opening tag, the 9th line
  1. Missing closing div here, between the lines
  1. Unclosed opening tag again, the 17th line
<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>
    
<p>Review your selections and continue to checkout. </p>
  <div class="btn-container" </div>


Option 2 and 3 are still not fixed

It was option two, I didn’t know I had to add a second closing. Thank you.

1 Like