<div class="container">
<ul>
<li>Friday</li>
<li>Monday</li>
<li>Saturday</li>
<li>Wednesday</li>
</ul>
<ol>
<li>Friday</li>
<li>Monday</li>
<li>Saturday</li>
<li>Wednesday</li>
</ol>
<div class="lists">
<div class="list__item">Friday</div>
<div class="list__item">Monday</div>
<div class="list__item">Saturday</div>
<div class="list__item">Wednesday</div>
</div>
</div>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
inline-size: 100vw;
min-block-size: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 40px;
font-family: "Exo", Arial, sans-serif;
background-color: #f7f7f7;
line-height: 2;
}
svg {
border: 0;
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
}
.container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
.container > * {
padding: 20px 40px;
background: #fff;
box-sizing: border-box;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}
:root {
--svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><circle cx='15' cy='15' r='10' /></svg>");
}
ul li {
list-style-image: var(--svg);
}
ol li {
list-style-image: url("//www.w3cplus.com/sites/default/files/blogs/2021/2108/rocket.svg");
}
.list__item {
display: list-item;
list-style-image: linear-gradient(to right, #09f, #90f, #f35, #90e);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.