Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1'>
body {
font: 16px sans-serif;
margin: 0;
padding: 0;
.parent {
display: inline-flex;
flex-direction: row;
.parent > div {
background-color: red;
color: white;
padding: 0 10px;
.parent > .active { background-color: green; }
<div class='parent'>
<div class='active'>horse</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment