- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>The transformer icon, step 1</title>
<meta charset="utf-8">
<link rel="stylesheet" href="material.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="blue-theme">
<section class="card card-bordered">
<div class="menu-icon">
<span></span>
</div>
</section>
</body>
</html>
CSS
.menu-icon span {
display: block;
width: 100%;
}
.menu-icon span::before,
.menu-icon span::after {
display: block;
width: 100%;
content: "";
}
.menu-icon span::before {
}
.menu-icon span::after {
}
You’ve gone to a different page
Goalscompleted
0
- Assign a height of
12px
and a background color of#40d47e
for.menu-icon span
. - Then set the same height and background color for
span::before
andspan::after
. - Then assign the
translate(0, -24px)
transform only tospan::before
, - and then assign the
translate(0, 12px)
transform tospan::after
.
Comments