Kevin Powell - CommunityKP-C
Kevin Powell - Community3y ago
10 replies
Pat66

set a background with linear gradient

Hi everyone

I get shame to make this request

I want set a background

my html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>background</title>
</head>
<body>
    <div class="top"></div>
    <div class="bottom"></div>
    <div class="left"></div>
    <div class="right"></div>
</body>
</html>


my css:

*,*::before,*::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    width: 100vw;
    height: 100vh;
  background: linear-gradient(40de,rgb(108,0,162), rgb(0,17,82));
 
}


I get this:
ze.jpg
Was this page helpful?