CSS Selectors


#1


https://www.codecademy.com/courses/web-beginner-en-WF0CF/1/4?curriculum_id=50579fb998b470000202dc8b#


The program tells me that I didn't underline the text in the "li" tags but this is the right code. Why doesn't it work? This is the error message I get. Oops, try again. Did you remember to set the paragraphs inside "li" tags to the text-decoration: underline;?


li {
    font-weight: bold;
    text-decoration: underline;
}


#2

You need to target the <p> tags inside your <li> tag. So your selector should be li p or something like that.


#3

It worked, Thanks!!!:grinning:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.