Code is correct but it won't change anything in the display


#1

Same issue. Code is correct but it won't change anything in the display.

body :nth-child(4) {
font-size: 26px;
}

I can get the code to change the display but only if i take out the body selector and use (2) instead of (4) and then it changes all the code to 26px. Very strange.

heres what that code looks like. I know its wrong.

:nth-child(2) {
font-size: 26px;
}

i also have a random "R" in the display above the top of my H3 line of code, can't figure out why as it's not in my coding anywhere.


Problem at 23.Pseudo selectors (Review)
#2

ive never seen a random "R".. thats very odd


#3

Can you show us all your code? I just had a weird problem with the nth-child aswell where i had to enter nth-child(5) to change sth which was the third child because it counted
tags as children of the tag aswell and i had 2 of those in between.


#4

Alright i figured it out! Not sure what was going on, just left it alone for a while and tried it again today. Works now, the R went away too. not sure what that was about. thanks though!


#5

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