Skip to content

Instantly share code, notes, and snippets.

@micheljansen
Created May 5, 2012 20:43
Show Gist options
  • Save micheljansen/2605500 to your computer and use it in GitHub Desktop.
Save micheljansen/2605500 to your computer and use it in GitHub Desktop.
<div class="progressitem gifsolution">
</div>
<div class="progressitem nested">
<div class="progress" style="width: 70%"></div>
</div>
.progressitem {
width: 150px;
height: 30px;
background-color: #eee;
border: 4px solid black;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
}
.nested {
overflow: hidden;
}
.nested .progress {
background-color: #ff0000;
height: 100%;
width: 0%;
}
.progressitem {
width: 150px;
height: 30px;
background-color: #eee;
border: 4px solid black;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
}
.gifsolution {
background-image: url(red_pixel.gif);
background-position: -1px 0;
background-repeat: repeat-y;
background-size: 0%;
overflow: hidden;
}
.gifsolution {
background-image: url(data:image/gif;base64,R0lGODlhAQABAPAAAP8AAP///yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==);
background-position: -1px 0;
background-repeat: repeat-y;
background-size: 0%;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment