- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Real-Life 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="goods">
<p>
Sorting:
<a class="arrow arrow-up" href="#">Ascending</a>
<a class="arrow arrow-down" href="#">Descending</a>
</p>
<ul>
<li>Toy mouse</li>
<li>“Sheep hunter” cat teaser</li>
<li>“Wolverine” scratching post </li>
<li>Fragrant dill weed for gourmet cats</li>
</ul>
</div>
</body>
</html>
CSS
a.arrow {
display: inline-block;
margin: 0 10px;
}
.arrow::before {
content: "";
}
You’ve gone to a different page
Goalscompleted
0
For the .arrow::before
pseudo-elements:
- Assign a solid frame that is
20px
thick and has the color#0074d9
. - Then change the width of the right and left side areas of the frame to
10px
. - Then make the right and left borders of the frame transparent.
Comments