Skip to content

Instantly share code, notes, and snippets.

@dannysmith
Created September 19, 2014 16:08
Show Gist options
  • Select an option

  • Save dannysmith/232fac9721d5908f5c44 to your computer and use it in GitHub Desktop.

Select an option

Save dannysmith/232fac9721d5908f5c44 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
body {
width: 30%;
margin: 3em auto;
position: relative;
height: 180px;
text-align: center;
}
.seat {
padding: .5em;
margin-bottom: .5em;
border-radius: 3px;
background: rgba(200,200,100,0.4);
box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.left {
float: left;
}
.bottom {
position: absolute;
bottom: 0;
width: 100%;
}
.right {
float: right;
}
</style>
</head>
<body>
<!-- If 1, spit this out -->
<div class="left">
<div class="seat">One</div>
<!-- If 2, 3, spit this out -->
<div class="seat">-</div>
<!-- If 4, spit this out -->
</div>
<div class="bottom">
<div class="seat">Four</div>
</div>
<div class="right">
<!-- If 5, 6, spit this out -->
<div class="seat">-</div>
<!-- If 7, spit this out -->
<div class="seat">Seven</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment