Skip to content

Instantly share code, notes, and snippets.

@justdoit176
Forked from henrik/percent-bg.html
Created August 25, 2014 14:31
Show Gist options
  • Save justdoit176/e0b8c95b40a70c5b149e to your computer and use it in GitHub Desktop.
Save justdoit176/e0b8c95b40a70c5b149e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<style>
table { border-collapse: collapse; }
td { border: 1px solid #000; }
.bar {
background-image: -webkit-gradient(linear, left top, right top, from(green), to(white), color-stop(0.75, green), color-stop(0.75, white));
background-image: -moz-linear-gradient(0, green 0%, green 75%, white 75%, white 100%);
}
</style>
</head>
<body>
<table style="width:300px">
<tr>
<td>
title
</td>
<td style="width:100px" class="bar">
75 %
</td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment