Struggling to chang color Lesson 5/10 (black to red)


#1

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

I have looked into other users complaints with lesson 5/10.

I have tried many variations, and suggestions found in other posts.

Please inform me of my error, anyone who has completed it


Replace this line with your code.


#2

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


#3

You forgot a colon : after font-size. And your curly bracket is closing your css selector too early. Put it after your font-size property.


#4

Podrás tener razón, pero su error era la llave, más sin embargo aquí le adjunto todo mi CSS, por si acaso.

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

h1 {
font-size: 32px;
font-family: Palatino, 'Palatino Linotype', serif;
color: rgb(121,149,117);
}

h2 {
font-size: 56px;
}

.hero {
font-family: 'Trebuchet MS', Helvetica, sans-serif;
background-image: url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg");
background-size: cover;
color:#ffffff;

}

#footer {

font-size: 0.75rem;
}

p {
font-size: 2rem;
}

.hero a {
color: #00FFAA;
font-size: 1.25em;
text-decoration: none;
}

PD: i am learning english :slight_smile:


#5

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