Hi after introducing the <div id=" intro"> tag, my color function isnt working, ive checked and the code is just fine, how come? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hi after introducing the <div id=" intro"> tag, my color function isnt working, ive checked and the code is just fine, how come?

div id

25th Dec 2016, 1:53 PM
Tiffany Kisiero
Tiffany Kisiero - avatar
5 Answers
+ 2
that's by #intro{ color: red; } everything placed within div id=intro will be of red color
25th Dec 2016, 2:24 PM
Sandeep Chatterjee
+ 1
@Sandeep, thanks alot, it did the trick.
25th Dec 2016, 2:55 PM
Tiffany Kisiero
Tiffany Kisiero - avatar
0
thinks for the answer
23rd Jan 2017, 10:58 PM
Henry cudjoe
Henry cudjoe - avatar
0
I have that same problem. my css file also contains a p{color:white} which seems to override the #intro I tried replacing <div > with <article > but to no avail
19th Feb 2017, 2:15 PM
Maiken Søe Micheelsen
Maiken Søe Micheelsen - avatar
0
@Maiken, have you checked if you have any other #intro other than the one giving you a problem?
2nd Mar 2017, 5:48 PM
Tiffany Kisiero
Tiffany Kisiero - avatar