- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Frames and Triangles, Part 1</title>
<meta charset="utf-8">
<link rel="stylesheet" href="setting.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="geometry">
<div class="square"></div>
</body>
</html>
CSS
.square {
margin: 100px auto;
width: 50px;
height: 50px;
background-color: #aaaaaa;
}
You’ve gone to a different page
Goalscompleted
0
- Assign a solid frame that is
100px
thick and#ffffff
in color to the.square
block, - change the color of the left border of the frame to
#0074d9
, change the right border to#2ecc40
, - make the color of the top border
#ff4136
and the bottom border#ffdc00
, - and, finally, set a zero width and height to
.square
.
Comments