Problem in CSS 5/10 - Change to HEX color


#1

Here is my code in CSS 5/10

body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}

h1{
font-family: Palatino, 'Palatino Linotype', serif;
font-size: 32px;
color: #d8dabe ;
}

h2 {
font-size: 32px;
}

.hero {
padding: 250px 0;
margin: 30px;
}

p {

}

.hero a {
color: #dabece;
font-size: 24px;
text-decoration: none;
}

I have changed the color at least 20+ times
but it just say I didn't change the h1 color to a hexidecimal value

could someone help me to solve this problem ?
and I have searched the same question try to fix it , but it just cant work....

thank you very much!


#2

Try to delete the space between the HEX value and the semicolon.


#3

I'm having this problem too and I can't continue without fixing it. I definitely changed it to all of the examples and nothing is happening. I added a space, took out a space, everything.

h1 {
font-size: 32px;

font-family: Palatino, 'Palatino Linotype', serif;

color : #2e69a3;

}


#4

Please tell me the number of this lesson to see the instructions


#5

Its in 'make a website' 5/10 3rd step in the instructions I'm having the same problem


#6

Has anyone solved it? I'm having the same problem too


#7

I moved the colon to immediately after color i.e. color: #799575


#8

Although now Im having this problem with 9. CSS id selectors on the last step


#9
  1. Give #footer a font-size property of 0.75rem :

#footer {
  font-size:0.75rem;
}

#10

ah perfect i hade to add a ; after 0.75rem thank you


#11

Thanks a lot mohamadbahaa! Deleting space does work!

Try to delete both spaces beside #799575
and the code will be come shorter like

color:#799575;

Hope it works as well!


#12

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