what is the wrong thing i did here?
See original GitHub issueChallenge 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:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
its not working, tried all the option
Hi, @Reicelo, the form id = “cat-photo-form” not the same with “cat-photo-element”. please check your code.