Skip to content

Instantly share code, notes, and snippets.

@samanpwbb samanpwbb/index.html forked from tristen/index.html
Last active Dec 16, 2016

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