I'm currently exploring the possibility of implementing a CSS border around an image that I have imported as a custom bullet for my list items:
ul {
list-style: none;
margin-right: 0;
padding-left: 0;
list-style-position: inside;
}
ul > li {
align-content: center;
display: flex;
margin: 5px 0;
padding-left: 1em;
text-indent: -1em;
}
ul li:before {
/* The image used here is different, but a similar one can be found online for demonstration purposes */
content: url("https://www.dicentral.com/css/assets/imgs/Flag_Nation_france.png");
border: 1px solid grey;
}
<ul>
<li>Learn about the company</li>
<li>Get to know important stakeholders and cross-functional partners</li>
<li>Understand how team priorities contribute to the overall mission</li>
<li>Familiarize yourself with projects, team goals, and onboarding expectations</li>
</ul>
The output displayed in the code editor matches the appearance of the image I am using.
https://i.sstatic.net/Epxlp.png
This is the desired outcome:
https://i.sstatic.net/pQjJC.png
Any suggestions or alternative approaches? I am considering importing the icon with the border but exploring other options first.
Thank you!