I’d use:
li {
list-style: none;
}
li::before {
content: '';
display: inline-block;
height: y;
width: x;
background-image: url();
}
More Related Contents:
- How to layout images in 3 columns [closed]
- Targeting flex items on the last or specific row
- How do I vertically align text in a div?
- Why does my image have space underneath?
- How to specify line breaks in a multi-line flexbox layout?
- Display a div width 100% with margins
- How to add 1px margin to a flex item that is flex: 0 0 25%?
- Twitter Bootstrap 3, vertically center content [duplicate]
- CSS3 Transform Skew One Side
- overlay opaque div over youtube iframe
- On hover of child, change background color of parent container (CSS only)
- Using custom HTML Tags
- Why does my header moves down when I set it fixed?
- How can I display the checkbox over the images for selection?
- Is there a way to remove a div but keep its elements?
- How to style a checkbox using CSS
- Generate repeating hexagonal pattern with CSS3
- Should I size a textarea with CSS width / height or HTML cols / rows attributes?
- Animating Linear Gradient using CSS
- How do change the color of the text of an within a ?
- Fill remaining vertical space – only CSS
- Vertical (rotated) text in HTML table
- Should image size be defined in the img tag height/width attributes or in CSS? [duplicate]
- Pure CSS Continuous Horizontal Text Scroll Without Break
- CSS position absolute and full width problem
- Size of font in CSS with slash
- Equal width columns in CSS Grid
- How to align entire html body to the center?
- What are the CSS properties that get elements out of the normal flow?
- Bootstrap Grid, do I need a container?