This forum is now read-only. Please use our new forums! Go to forums
not sure what i did wrong
my error message- Oops, try again. Did you give your third paragraph a font-size of 26px? It looks like it’s currently 16px.
my css code-
.fancy { font-family: cursive; color: violet; } #serious { font-family: Courier; color: #8C8C8C }
p: nth-child(4) { font-size: 26px; }
what did i do wrong?
Answer 55fa806d95e37881ec000728
you can either use p:nth-child(4)
or body :nth-child(4)
, but you can’t use p: nth-child(4)
, the spacing is really important here.
If you use p:nth-child(4) it styles the 4th child of their parent, if you use body :nth-child(4) it selects the 4th child inside body. p: nth-child(4) just doesn’t work.
Can i see your html code if it is still not working? check here how to format your code. Your html code is currently not visible. if you update your question please leave a comment so i get a notification.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency