Created
October 2, 2013 10:56
-
-
Save nadouani/6792000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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