---
layout: layouts/post.njk
title: Feature comparison
description: Create a feature comparison list with CSS flexbox
keywords: css feature comparison, css flexbox
---
## HTML
```html
...
```
## CSS
```css
.feature-comparison {
align-items: center;
display: flex;
/* Bottom border */
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
/* Spacing */
padding: 0.25rem 0;
}
.feature-comparison__feature {
/* Take available width */
flex: 1;
}
.feature-comparison__model {
/* Center the content */
display: flex;
justify-content: center;
}
```
{% demo %}
{% include "patterns/feature-comparison.njk" %}
{% enddemo %}