Created
April 4, 2020 07:08
-
-
Save adrielTosi/698d4b0fc9d0e35ae670afe4f801df26 to your computer and use it in GitHub Desktop.
Custom images as bullets for <li> tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
list-style: none; | |
padding-left: 0; | |
li { | |
position: relative; | |
padding-left: $size-9; | |
&::before { | |
content: ""; | |
width: 36px; | |
height: 36px; | |
position: absolute; | |
background-image: url("../images/check.png"); | |
background-size: cover; | |
background-position: center; | |
left: 24px; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment