Give background color of silver to div element.. Code appears to pass, however results not displaying.
See original GitHub issueChallenge Give a Background Color to a Div Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
.
Please describe how to reproduce this issue, and include links to screens
<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;
}
.silver-background {
background-color: silver;
}
</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="silver-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">
<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
- Reactions:4
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Background color in div element not showing [duplicate]
I'm taking this course called HTML, CSS, and Javascript for Web Developers. I'm in the lecture that talks about floating elements, my problem...
Read more >background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an element.
Read more >HTML Background Color Tutorial – How to Change a Div ...
The default background color of a div is transparent . So if you do not specify the background-color of a div, it will...
Read more >Visualization: Column Chart - Google Developers
Like all Google charts, column charts display tooltips when the user hovers over the data. For a horizontal version of this chart, see...
Read more >Moving the mouse: mouseover/out, mouseenter/leave
The mouseover event occurs when a mouse pointer comes over an ... that the mouse came not from another element, but from out...
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
Thanks so much i was on it for like 30 minutes I had the right idea but my code was in the wrong place.
This issue or another similar just prevented me from passing the lesson on Firefox. I was able to copy the code over to Chrome and it passed without changes so I’m in the clear but you should be aware for other’s sake. The code was deemed correct but I didn’t see the silver background applied on screen and it failed me for that. (Firefox 63.0.3 (64-bit) on Mac 10.12.6)