- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Creating an Arrow with a Frame</title>
<meta charset="utf-8">
<link rel="stylesheet" href="setting.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="geometry">
<div class="arrow-right-long"></div>
</body>
</html>
CSS
.arrow-right-long {
position: relative;
margin: 150px auto;
width: 200px;
height: 30px;
background-color: #0074d9;
}
.arrow-right-long::after {
position: absolute;
content: "";
}
You’ve gone to a different page
Goalscompleted
0
- For the
.arrow-right-long::after
pseudo-element, assign a solid frame that is40px
thick and#ffffff
in color, - then assign it the position of
top: -25px
andright: -30px
, - zero the thickness of the right border of the frame, and set the color to
#0074d9
for the left border, - and then make the top and bottom borders of the frame transparent.
Comments