Skip to content

Label Bootstrap Buttons #7618

Closed
burnleyt opened this Issue · 2 comments

3 participants

@burnleyt

Challenge Label Bootstrap Buttons has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <h4>#target1</h4>
        <button class="btn btn-default target" id="target1"></button>
        <h4>#target2</h4>
        <button class="btn btn-default target" id="target2"></button>
        <h4>#target3</h4>
        <button class="btn btn-default target" id="target3"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <h4>#target4</h4>
        <button class="btn btn-default target" id="target4"></button>
        <h4>#target5</h4>
        <button class="btn btn-default target" id="target5"></button>
        <h4>#target6</h4>
        <button class="btn btn-default target" id="target6"></button>
      </div>
    </div>
  </div>
</div>

Very simple instructions. Similar to challenge before. I checked for closing tags, I put the hash, no spaces, no typos...

I can not see the problem.

@drk7891

Your issue isn't a bug as you aren't giving the buttons a label. You're having h4 set to the label when you would want to give it to the button. For example:

<button class="btn btn-default target" id="target4">#target4</button>

Have you checked out the FreeCodeCamp Gitter channel?

@sludge256 sludge256 closed this
@burnleyt

Oh ok, thanks for your help. I did look for a solution before posting but couldn't find answer. Again, thank you, I understand now. I relied too much on the similarity to the one before this and got tunnel vision. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.