GitHub 6956★

Have you seen CSS Scan?

The fastest and easiest way to check, copy and edit CSS.

Learn more →

CSS Scan logo

Feature list

HTML

<!-- Feature item -->
<div class="feature-list">
<!-- Image -->
<div class="feature-list__image">...</div>

<!-- Right side -->
<div class="feature-list__desc">...</div>
</div>

<!-- Repeated items -->
...

CSS

.feature-list {
display: flex;

/* OPTIONAL: Spacing between items */
margin: 0.5rem 0;
}

/* Reverse the order of image and content */
.feature-list--reverse {
flex-direction: row-reverse;
}

.feature-list__image {
width: 2rem;
}

.feature-list__desc {
/* Take the remaining width */
flex: 1;
}
Demo
Follow me on and to get more useful contents.