<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Changing a 2-column stylesheet/theme to 3 columns</title>
	<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns/</link>
	<description>Comments on Ask MetaFilter post Changing a 2-column stylesheet/theme to 3 columns</description>
	<pubDate>Wed, 23 Jul 2008 08:46:37 -0800</pubDate>
	<lastBuildDate>Wed, 23 Jul 2008 08:46:37 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Changing a 2-column stylesheet/theme to 3 columns</title>
		<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns</link>	
		<description>CSS gurus: Changing a 2-column layout to a 3-column one? &lt;br /&gt;&lt;br /&gt; I&apos;ve been using &lt;a href=&quot;http://andreasviklund.com/templates/1024px/&quot;&gt;this theme&lt;/a&gt; for a WordPress site, and it&apos;s great ... but it needs to become three columns instead of two. My CSS skills are passable and I&apos;ve not attempted this kind of major stylesheet surgery before - is this easily doable?&lt;br&gt;
&lt;br&gt;
It&apos;s a fixed width theme, so all I need to do is shave off enough room from the main column to facilitate a right sidebar that is identical to the one on the left. Any hand-holding would be appreciated.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.97309</guid>
		<pubDate>Wed, 23 Jul 2008 08:21:08 -0800</pubDate>
		<dc:creator>jbickers</dc:creator>
		
			<category>CSS</category>
		
			<category>wordpress</category>
		
	</item> <item>
		<title>By: le morte de bea arthur</title>
		<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns#1418098</link>	
		<description>Your existing columns are defined by these CSS entries:&lt;br&gt;
&lt;br&gt;
#content {float:right; line-height:1.5em; margin:0; padding:0; text-align:left; width:750px;}&lt;br&gt;
&lt;br&gt;
and&lt;br&gt;
&lt;br&gt;
#sidebar {float:left; line-height:1.4em; margin:0 0 5px; padding:1px 0 0; width:195px;}&lt;br&gt;
&lt;br&gt;
These are enclosed by an outer div, &apos;wrap&apos;:&lt;br&gt;
&lt;br&gt;
#wrap {color:#404040; margin:10px auto; padding:0; width:970px;}&lt;br&gt;
&lt;br&gt;
750+195 = 965 - the &apos;wrap&apos; div appears to be slightly over-width, but never mind.&lt;br&gt;
&lt;br&gt;
Decide how wide your extra column needs to be, and subtract this from the #content and sidebar divs. So you could change the width values of #sidebar and #content to 150 and 600 respectively, giving you an allowance of 195px, for example).&lt;br&gt;
&lt;br&gt;
Define a #rightbar CSS style in the 1024px.css file with the desired width (I&apos;ve just copied the left bar and changed the float):&lt;br&gt;
&lt;br&gt;
#rightbar {float: right;  line-height:1.4em; margin:0 0 5px; padding:1px 0 0; width:195px; }&lt;br&gt;
&lt;br&gt;
In the HTML, insert the &apos;rightbar&apos; div after the &quot;content&quot; div, i.e.&lt;br&gt;
&lt;br&gt;
&amp;lt;div id=&quot;content&amp;gt;&lt;br&gt;
.....&lt;br&gt;
&amp;lt;/div&amp;gt;&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;div id=&quot;rightbar&quot;&amp;gt;&lt;br&gt;
...... your new content here ......&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;div id=&quot;sidebar&quot;&amp;gt;&lt;br&gt;
......&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;br&gt;
&lt;br&gt;
That should do it... although knowing me an error will have crept in somewhere...&lt;br&gt;
You may have to move the &quot;rightbar&quot; div after the &quot;sidebar&quot; div if they appear in the wrong order :) Using multiple right floats isn&apos;t something I&apos;ve done...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.97309-1418098</guid>
		<pubDate>Wed, 23 Jul 2008 08:46:37 -0800</pubDate>
		<dc:creator>le morte de bea arthur</dc:creator>
	</item><item>
		<title>By: jbickers</title>
		<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns#1418310</link>	
		<description>Yes, multiple right-floats is turning out to be problematic. The left sidebar is called by the WP get_sidebar function, while the right sidebar is coming from a PHP include that I&apos;ve added - and it doesn&apos;t appear to matter what order I put them in, it always wants to put the right sidebar to the left of the main content area.&lt;br&gt;
&lt;br&gt;
??</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.97309-1418310</guid>
		<pubDate>Wed, 23 Jul 2008 10:40:23 -0800</pubDate>
		<dc:creator>jbickers</dc:creator>
	</item><item>
		<title>By: bjgeiger</title>
		<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns#1418354</link>	
		<description> &lt;a href=&quot;http://www.bjgeiger.com/doodles/learn/css.html&quot;&gt;Self link&lt;/a&gt; view source for style sheets for 3 col layouts.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.97309-1418354</guid>
		<pubDate>Wed, 23 Jul 2008 11:06:07 -0800</pubDate>
		<dc:creator>bjgeiger</dc:creator>
	</item><item>
		<title>By: tracert</title>
		<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns#1418471</link>	
		<description>So I&apos;m just going to throw &lt;a href=&quot;http://developer.yahoo.com/yui/grids/&quot;&gt;this &lt;/a&gt;out there.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.97309-1418471</guid>
		<pubDate>Wed, 23 Jul 2008 12:26:20 -0800</pubDate>
		<dc:creator>tracert</dc:creator>
	</item><item>
		<title>By: le morte de bea arthur</title>
		<link>http://ask.metafilter.com/97309/Changing-a-2column-stylesheettheme-to-3-columns#1419195</link>	
		<description>I think you can safely make all three of your columns left floats: that way, they&apos;ll appear in order from left to right.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.97309-1419195</guid>
		<pubDate>Thu, 24 Jul 2008 01:51:30 -0800</pubDate>
		<dc:creator>le morte de bea arthur</dc:creator>
	</item>
	</channel>
</rss>
