- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Real-Life Triangles, 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="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 {
border: 20px solid #0074d9;
border-right-width: 10px;
border-right-color: transparent;
border-left-width: 10px;
border-left-color: transparent;
content: "";
}
.arrow-up::before {
}
.arrow-down::before {
}
You’ve gone to a different page
Goalscompleted
0
- For
.arrow-down::before
, set the thickness of the lower frame to zero, - and then for
.arrow-up::before
set the thickness of the upper frame to zero. - Assign the
display: inline-block
property to.arrow::before
, - and then set the font size to zero for the
.arrow
links themselves.
Comments