question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

what is the wrong thing i did here?

See original GitHub issue

Challenge Use an ID Attribute to Style an Element has an issue. User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:


<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }

  .gray-background {
    background-color: gray;
  }

   #cat-photo-element {
  background-color: green;
}

</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

<div class="gray-background">
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
</div>

<form action="/submit-cat-photo" id="cat-photo-form">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yogain123commented, Jul 19, 2016

its not working, tried all the option

0reactions
haihcommented, Aug 20, 2016

Hi, @Reicelo, the form id = “cat-photo-form” not the same with “cat-photo-element”. please check your code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Straight To Hell ft. Jason Aldean, Luke Bryan ... - YouTube
Check out the brand-new album 'When Was The Last Time' from Darius Rucker here ! - http://strm.to/DariusWWTLT Purchase Darius Rucker's new ...
Read more >
You Said the Wrong Thing at Work. Here Are 5 Steps to Take ...
Call it microaggressions, call it bias, call it pure boneheaded thoughtlessness. You said it, you're worried you'll get canceled, and now you ...
Read more >
3 Ways To Clean Up Your Mess When You Say The Wrong ...
So what do we do when we've said the wrong thing and fear we've hurt a relationship? Here are 3 ways to clean...
Read more >
Factfulness: Ten Reasons We're Wrong About the World
Buy Factfulness: Ten Reasons We're Wrong About the World--and Why Things Are ... Though the world faces huge challenges, we have made tremendous...
Read more >
Want to sound and feel more confident? Ditch these 11 ...
Here are some negative phrases to ditch if you want to think more ... about the good things that happened because you did...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found