I don't get it

i don’t get it im using

#header-text {
} 

and

.header-text {
}

and still get the same error

# is for id
. is for class

Please give more information, which lesson error ect…

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

}
what should i do !! ?

More information please…

Lesson URL, error and full code

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…

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 …

@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

1 Like

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

4 Likes

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

A post was split to a new topic: ID selectors

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