Add a class selector for ID header-text


#1

HTML CODE -

 <div class="header">
    <div id="header-text"> <!--Add an id to this div -->
      
    </div>
  </div>

  <div  class="header1"></div><!--Add a class to this div -->
 ```


CSS CODE -

header-text .header {

}
`
it is giving error - did you add the id selector


#2

Because if you want to make an id you have to write #id-name, and for the class .class-name :slight_smile:


#3

A post was split to a new topic: I don't get it


#4

Im in trouble too. The exercises ask to add a class selector, but the example is connected to ID Seletor. I tried #header-text {} but doesn't worked. Someone can help me?


#5

I have this trouble too...


#6

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