- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Creating a Complex Background – Part 1</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="pattern"></div>
</body>
</html>
CSS
.pattern {
margin: 100px auto;
width: 100px;
height: 100px;
background-color: #333333;
background-image:
none,
none;
box-shadow: 1px 1px 3px #333333;
}
html,
body {
margin: 0;
padding: 0;
}
You’ve gone to a different page
Goalscompleted
0
Add two gradients that transition from white
totransparent
with a sharp transition at 25%
to the .pattern
block:
- The first gradient should be at an angle of
135°
, - and the second gradient should be at an angle of
225°
.
Comments