Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created November 3, 2008 22:08
Show Gist options
  • Save ab5tract/22002 to your computer and use it in GitHub Desktop.
Save ab5tract/22002 to your computer and use it in GitHub Desktop.
i=1
colors.each do |color|
td.color#{i}! :background => color
i++
end
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>palateate test</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
table.palette_canvas { position: abolute; left: 4.8%; }
td tr { padding: 0px; margin: 0px; border:0; }
td#color1 { background: #BCBDAC; }
td#color2 { background: #CFBE27; }
td#color3 { background: #F27435; }
td#color4 { background: #F02475; }
td#color5 { background: #3B2D38; }
.palette_bg { position: absolute; top: 35px; left: 11%; background: white; padding: 2.2%; }
</style>
</head>
<body bgcolor="#BCBDAC">
<div class="palette_bg">
<table class="palette_canvas" width="350" height="222" cellpadding="0" cellspacing="0">
<tr><td id="color1" width="70"></td>
<td id="color2" width="70"></td>
<td id="color3" width="70"></td>
<td id="color4" width="70"></td>
<td id="color5" width="70"></td></tr>
</table>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment