<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Table Style</title>
		<link>http://community.wikidot.com/forum/t-58247/table-style</link>
		<description>Posts in the discussion thread &quot;Table Style&quot; - How to format a table background</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://community.wikidot.com/forum/t-58247#post-159371</guid>
				<title>Re: Table Style</title>
				<link>http://community.wikidot.com/forum/t-58247/table-style#post-159371</link>
				<description></description>
				<pubDate>Wed, 07 May 2008 16:00:30 +0000</pubDate>
				<wikidot:authorName>Helmuti_pdorf</wikidot:authorName>				<wikidot:authorUserId>17609</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <h3><span>For easier formattting:</span></h3> <p>You can put the simple table into another new one with one row/cell ( nested):<br /> Have a look: ( the background color is now defined per cell , could be per row ro table…</p> <br /> <br /> <table style="text-align: center; border: 0px solid silver; margin: auto;"> <tr> <td style="background-color: #DDDDEE;"> <table class="wiki-content-table"> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> </table> </td> </tr> </table> <p>Done with :</p> <div class="code"> <pre> <code>[[table style="text-align: center; border: 0px solid silver; margin: auto;"]] [[row]] [[cell style="background-color: #DDDDEE;"]] ||cell_content||cell_content||cell_content||cell_content|| ||cell_content||cell_content||cell_content||cell_content|| ||cell_content||cell_content||cell_content||cell_content|| ||cell_content||cell_content||cell_content||cell_content|| [[/cell]] [[/row]] [[/table]]</code> </pre></div> <h3><span>Border-collapse</span></h3> <p>In the first solution with table tag there is the problem that the style attribute :</p> <p><strong>border-collapse:</strong> with the 2 parameter values <strong>seperate</strong> and <strong>collapse</strong><br /> by default set is to "seperate" - means there are borders around the table AND the cell.</p> <p>if you do not wantthis "new" layout than you need to write into the table tag:<br /> [[table style="....; border-collapse: collapse;"]] instead of the default "seperate" !</p> <p>Hope this helps too? :)</p> <p>Regards<br /> Helmut</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-58247#post-159346</guid>
				<title>Re: Table Style</title>
				<link>http://community.wikidot.com/forum/t-58247/table-style#post-159346</link>
				<description></description>
				<pubDate>Wed, 07 May 2008 15:28:33 +0000</pubDate>
				<wikidot:authorName>morrisg</wikidot:authorName>				<wikidot:authorUserId>122741</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Many thanks Helmut……<br /> Even a 'newbie' can follow your instructions.<br /> Gracias from Spain.<br /> Morrisg</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-58247#post-159340</guid>
				<title>Re: Table Style</title>
				<link>http://community.wikidot.com/forum/t-58247/table-style#post-159340</link>
				<description></description>
				<pubDate>Wed, 07 May 2008 15:20:16 +0000</pubDate>
				<wikidot:authorName>Helmuti_pdorf</wikidot:authorName>				<wikidot:authorUserId>17609</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>1. use the new table tags: <a href="http://community.wikidot.com/howto:table-layout-with-row-and-cell" >http://community.wikidot.com/howto:table-layout-with-row-and-cell</a></p> <br /> <table style="background-color: #DDDDEE; border: 1px solid silver;"> <tr> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> </tr> <tr> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> </tr> <tr> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> </tr> <tr> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> <td style="border: 1px solid silver;">cell_content</td> </tr> </table> <p>Done with</p> <div class="code"> <pre> <code>[[table style="background-color: #DDDDEE; border: 1px solid silver;"]] [[row]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[/row]] [[row]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[/row]] [[row]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[/row]] [[row]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[cell style="border: 1px solid silver;"]] cell_content [[/cell]] [[/row]] [[/table]]</code> </pre></div> <p>or</p> <p>2. use the (simple ) table format as you want to use - than<br /> put the table inside a [[Div style="...."]]... [[/div]] tag with the "style"attribute like this example:</p> <div style="background-color: #DDDDEE;"> <table class="wiki-content-table"> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> <tr> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> <td>cell_content</td> </tr> </table> </div> <p>Done with :</p> <div class="code"> <pre> <code>[[Div style="background-color: #DDDDEE;"]] ||cell_content||cell_content||cell_content||cell_content|| ||cell_content||cell_content||cell_content||cell_content|| ||cell_content||cell_content||cell_content||cell_content|| ||cell_content||cell_content||cell_content||cell_content|| [[/div]]</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-58247#post-159191</guid>
				<title>Table Style</title>
				<link>http://community.wikidot.com/forum/t-58247/table-style#post-159191</link>
				<description></description>
				<pubDate>Wed, 07 May 2008 11:00:53 +0000</pubDate>
				<wikidot:authorName>morrisg</wikidot:authorName>				<wikidot:authorUserId>122741</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Folks.<br /> I'm an absolute newbie to Wikidot.<br /> I think my question is simple.<br /> I want a Table of 4 Columns and 10 Rows, the background for the Table should be Yellow.<br /> I don't want to have to define the style for EACH cell, just the Table.<br /> Is it possible to define the Table background when using the format for the table as shown below.</p> <table class="wiki-content-table"> <tr> <td>cell-content</td> <td>cell-content</td> <td>cell-content</td> <td>cell-content</td> </tr> <tr> <td>cell-content</td> <td>cell-content</td> <td>cell-content</td> <td>cell-content</td> </tr> <tr> <td>cell-content</td> <td>cell-content</td> <td>cell-content</td> <td>cell-content</td> </tr> </table> <p>Still learning….<br /> Thanks<br /> Morrisg</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>