I don't get it


#1

i don't get it im using

#header-text {
}

and

.header-text {
}

and still get the same error


Add a class selector for ID header-text
#2

# is for id
. is for class

Please give more information, which lesson error ect..


#5

i can't select class selector !! it gives me erorr always !
and i write what it wants
.header-text{

}
what should i do !! ?


#6

More information please..

Lesson URL, error and full code


#7

https://www.codecademy.com/courses/learn-html-css/lessons/ids-classes-divs/exercises/id-selectors?action=lesson_resume&link_content_target=interstitial_lesson

I have the same error as the other guys...

"In style.css, add a class selector for the ID header-text."

This is self contradictory...


#8

Can we get an answer to this please?

"In style.css, add a class selector for the ID header-text."

#header-text {

}

^^ this does not seem to work with the Pound sign, and neither does .header-text ...


#9

@francislao @rubyjumper00998 @khaledba7r

You don't need to create a new rule, where it says:

/* Add the ID selector to this CSS rule */

That's where you will add it, on the next line
To the existing rule that doesn't have a selector


#10

I finally got it, I added #header-text. Before I added #header-text{}... Very confusing exercise.


#11

Instructions are not very clear, I'm going to see if that can be changed :slight_smile:


#12

A post was split to a new topic: ID selectors


#13

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