This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by MR.P
over 8 years

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>

Answer 560583259113cbd818000326

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

points
Submitted by Judy
over 8 years