Problem in CSS 5/10 - Change to HEX color

Here is my code in CSS 5/10

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

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!

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

1 Like

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;


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

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

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

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

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

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

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

1 Like

Thanks a lot mohamadbahaa! Deleting space does work!

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


Hope it works as well!

1 Like

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