Skip to content

Instantly share code, notes, and snippets.

@nadouani
Created October 2, 2013 10:56
Show Gist options
  • Save nadouani/6792000 to your computer and use it in GitHub Desktop.
Save nadouani/6792000 to your computer and use it in GitHub Desktop.
div.indicator {
width: 100px;
border: 1px solid black;
}
div.indicator div.segment{
float: left;
height: 20px;
}
div.indicator div.segment.last{
float: none;
}
div.indicator div.success {
background-color: green;
width: 10%;
}
div.indicator div.warning {
background-color: yellow;
width: 10%;
}
div.indicator div.failure {
background-color: red;
}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class="indicator">
<div class="segment success"></div>
<div class="segment warning"></div>
<div class="segment failure last"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment