<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sarah Tebo, web designerTag Archive | table | Sarah Tebo, web designer</title>
	<atom:link href="http://sarahtebo.com/tag/table/feed/" rel="self" type="application/rss+xml" />
	<link>http://sarahtebo.com</link>
	<description></description>
	<lastBuildDate>Thu, 19 Apr 2012 15:09:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A simple, styled table</title>
		<link>http://sarahtebo.com/2009/02/a-simple-styled-table/</link>
		<comments>http://sarahtebo.com/2009/02/a-simple-styled-table/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 17:18:54 +0000</pubDate>
		<dc:creator>Sarah Tebo</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://blog.sarahtebo.com/?p=42</guid>
		<description><![CDATA[So how many elections did we have last year? Seems like at least a dozen, though it was probably only about half that. For the bigger elections, like the primaries and the November general election, the Rome News-Tribune had full results pages to show vote totals as they came in. In the smaller elections, though, I just made a simple HTML table that the numbers could easily be inserted into.]]></description>
			<content:encoded><![CDATA[<p>So how many elections did we have last year? Seems like at least a dozen, though it was probably only about half that. For the bigger elections, like the primaries and the November general election, the Rome News-Tribune had full results pages to show vote totals as they came in. In the smaller elections, though, I just made a simple HTML table that the numbers could easily be inserted into. Here&#8217;s an example of the HTML for one of those tables.</p>
<p>What it looks like:</p>
<table style="border-collapse: collapse;" border="1" cellpadding="5" width="300" bgcolor="#ffffff">
<tbody>
<tr>
<th colspan="2"><span style="color: #000000;">xx of xx precincts reporting</span></th>
</tr>
<tr>
<th colspan="2"><span style="color: #000000;">Office 1</span></th>
</tr>
<tr>
<td width="240"><span style="color: #000000;">Candidate 1</span></td>
<td width="60"><span style="color: #000000;">xx</span></td>
</tr>
<tr>
<td><span style="color: #ff0000;">Candidate 2</span></td>
<td><span style="color: #ff0000;">xx</span></td>
</tr>
<tr>
<td><span style="color: #000000;">Candidate 3</span></td>
<td><span style="color: #000000;">xx</span></td>
</tr>
<tr>
<td><span style="color: #000000;">Candidate 4</span></td>
<td><span style="color: #000000;">xx</span></td>
</tr>
<tr>
<th colspan="2" width="300"><span style="color: #000000;">Office 2</span></th>
</tr>
<tr>
<td><span style="color: #000000;">Candidate 2</span></td>
<td><span style="color: #000000;">xx</span></td>
</tr>
<tr>
<td><span style="color: #000000;">Candidate 3</span></td>
<td><span style="color: #000000;">xx</span></td>
</tr>
<tr>
<td><span style="color: #ff0000;">Candidate 4</span></td>
<td><span style="color: #ff0000;">xx</span></td>
</tr>
</tbody>
</table>
<p>Your table may look a little different because of the styles on this page, but it&#8217;s pretty much what you see above. Obviously, this can be used for any table you need, and to make more categories, just copy and paste. And now for the code:</p>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://sarahtebo.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=42&amp;download=table.txt">table.txt</a></span>
<div class="codebox_clear"></div>
</div>
<div class="wp_codebox">
<table>
<tr id="p421">
<td class="code" id="p42code1">
<pre class="html" style="font-family:monospace;">&lt;table style=&quot;border-collapse: collapse;&quot; border=&quot;1&quot; cellpadding=&quot;5&quot; width=&quot;300&quot; bgcolor=&quot;#ffffff&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th colspan=&quot;2&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;xx of xx precincts reporting&lt;/span&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th colspan=&quot;2&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Office 1&lt;/span&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;240&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Candidate 1&lt;/span&gt;&lt;/td&gt;
&lt;td width=&quot;60&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;Candidate 2&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Candidate 3&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Candidate 4&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th colspan=&quot;2&quot; width=&quot;300&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Office 2&lt;/span&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Candidate 2&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Candidate 3&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #000000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;Candidate 4&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;xx&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</pre>
</td>
</tr>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://sarahtebo.com/2009/02/a-simple-styled-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

