This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

102 points
Eb1fc71e03f33f2ef5891216e4bfb36f?s=140&d=retro
Submitted by
MR.P
almost 2 years ago

15/21 heey can i get some help, im stuk with the code background-size: cover;

<!DOCTYPE html>
<head>
<style>
body {
    background-size: cover;
    background-position: center;
    background-repeat no-repeat;
    background-attachment: fixed;
    text-align: center;
    background: url("http://csgo-proplayers.ru/wp-content/uploads/2015/06/snayperskaya-vintovka-oruzhie-4357.jpg");

color: white;
    font-family: Helvetica;
}
h1 {
    text-align:center;
}
p {
    text-align: center;
    }
</style>
</head>
<body>

<img src="http://cs24h.com/wp-content/uploads/2015/07/CSGO-logo.png" height="250" width="width="250">

<p> Heey! I am the real Classic,
Im the best awper in the gaben country o.O
If your wanna ask em somthing or just play some games for fun, then uyou are welcome to mail me^^</p>
<input type="email" placeholder="Email">
<input type="submit">
</body>

1 vote

permalink

Hi MR.P,

You will see that error when your background properties are overwriting each other. You need to place them so that doesn't happen.

You can read more about that here:
https://www.codecademy.com/forum_questions/5305fa5980ff33a4830012a4

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 2 years ago