- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Creating a Round Arrow with a Frame, Part 2</title>
<meta charset="utf-8">
<link rel="stylesheet" href="setting.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="geometry">
<div class="arrow-round"></div>
</body>
</html>
CSS
.arrow-round {
position: relative;
margin: 100px auto;
width: 200px;
height: 200px;
border: 50px solid #0074d9;
border-right-color: transparent;
border-radius: 50%;
}
.arrow-round::after {
position: absolute;
content: "";
}
You’ve gone to a different page
Goalscompleted
0
For the .arrow-round::after
pseudo-element:
- Set a solid frame that is
100px
thick, has the color#ffffff
, and assign the color#0074d9
to the bottom border of the frame. - Assign the coordinates
top: -45px
andleft: 130px
. - Set a zero thickness for the right and top borders of the frame,
- and make the left border of the frame transparent.
Comments