ID Selectors trouble


#1

Here is the link to the exercise I'm stuck on. --> https://www.codecademy.com/courses/learn-html-css/lessons/ids-classes-divs/exercises/id-selectors?action=lesson_resume

It keeps saying "Did you add the ID selector?"

This is the code I keep writing in.


#header-text {
  color:blue;
}


#2

can you post the full html and css code please


#3

Style.css :
body {
background-color: #FFF;
margin: 0;
padding: 0;
}

.header {
background-image: url("https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-5/htmlcss1-img_canyon.jpeg");
background-position: center center;
background-size: cover;
height: 700px;
width: 100%;
}

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

{
margin: 0 auto;
position: relative;
text-align: center;
top: 25%;
width: 60%;
}

h1 {
color: #FFF;
font-family: 'Quicksand', sans-serif;
font-size: 70px;
font-weight: 400;
line-height: 60px;
margin: 0;
}

h2 {
color: #FFF;
font-family: 'Open Sans', sans-serif;
text-align: center;
font-size: 28px;
font-weight: 100;
}

h3 {
color: #FFF;
font-family: 'Quicksand', sans-serif;
font-size: 28px;
font-weight: 400;
line-height: 30px;
margin: 10px 0px;
text-align: center;
}

h4 {
color: #CCC;
font-family: 'Quicksand', sans-serif;
font-size: 16px;
font-weight: 300;
}

p {
color: white;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
font-weight: 100;
line-height: 24px;
margin: 0 auto;
text-align: center;
width: 60%;
}

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

{
padding: 20px;
text-align: center;
margin: 0 auto;
border-bottom: 1px solid #EEE;
}

.partner img {
position: relative;
top: 6px;
}

.aa-logo {
padding-left: 6px;
}

.main {
background: url("https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-5/shards.png");
margin: 0;
padding: 40px;
}

.value-props {
margin: 40px auto;
width: 60%;
}

.prop {
border: 1px solid #FFF;
padding: 40px 0px;
margin: 5px 0px;
text-align: center;
}

.prop h2 {
font-family: 'Quicksand', sans-serif;
font-size: 24px;
}

header-text {

}

index.html :



Jetsetter Concierge Travel Planning





Travel Like Never Before


Whether you're looking for adventure or luxury, let us help you plan your perfect getaway.




Proud Partner of Am South Airlines


<h3>Why You Should Choose Jetsetter Concierge Travel Planning</h3>
<p>With over 25 years of experience in concierge, high-end travel planning, we'll provide you with the highest quality services. Every vacation is unique, custom, and tailored to your tastes.</p>


  <div class="prop">
    <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-5/htmlcss1-img_diamond.png" width="60px">
    <h2>Unique</h2>
    <p>We don't do standardized packages because we know everyone wants something different. Every vacation will be uniquely customized to your tastes.</p>
  </div>

  <div class="prop">
    <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-5/htmlcss1-img_diamond.png" width="60px">
    <h2>Experienced</h2>
    <p>Our quarter century of experience in travel planning combines local knowledge with international taste. You'll be amazed at what we can provide!</p>
  </div>

  
    <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-5/htmlcss1-img_diamond.png" width="60px">
    <h2>Luxury</h2>
    <p>We understand that you expect the world of your vacation - Jetsetter can provide once in a lifetime experiences at top of the line quality.</p>



#4

ok so if you go down to the second block of code where it says ,header{ click on that line and hit enter and insert the code #header-text {
color:blue;
} and that should work


#5

It still displays the same message, maybe I labeled the ID wrong?


#6

Actually I found a way! Thank you for your help & sorry for being confusing ::slight_smile:


#7

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