ucwutididthar? I titled this post “Thesis Phi-Column Layout,” instead of “Three-Column Layout?” Ha ha ha! Get it?!
No, of course you don’t. No one does…not even me. But let’s continue anyway.
This post is for anyone who meets the following criteria:
- You use the Thesis WordPress theme.
- You use a 3-column layout.
- You want your page layout to be more aesthetically pleasing, by using column widths that are in the golden ratio.
(I think that means I wrote this for myself.)
In case you’re wondering…yes, I have already formatted this blog to achieve said aesthetic pleasure. You might also be wondering: What is the golden ratio? Well, the quick answer–and the only answer you’ll get from me–is it’s approximately 1.61803399, and a bunch of smart people during the Renaissance believed it was a ratio that made shit look cool. I like my shit to look cool, so I experimented with the Thesis Design Options and made it happen.
The Golden Ratio
There are several different combinations that could work, but the basic goal is to set the column widths such that: #content ÷ φ = #sidebars where φ is the golden ratio ≈ 1.61803399
The Default Thesis Column Layout
I’ve made a diagram that I thought would help explain the differences between the default CSS and my “golden” CSS, but looking at it now…I’m confusing myself. Oh well, I’ll post it anyway. Here’s a diagram of the Thesis default column widths:

This isn’t the actual CSS code I used. It’s only a key for you to reference when you look at the diagram, so you can tell which element is which.
#content_box{width: 956px;}
#content{width: 516px;}
#sidebars{width: 439px;}
#sidebar_1{width: 219px;}
#sidebar_2{width: 218px;}
Note:
#sidebar_1is 220px wide in the diagram, but 219 in the CSS. This is because the diagram has added in the 1px border-right, indicated by the blue line.- The red lines in the diagram represent 1px-wide columns that are not occupied by child elements. The main element,
#content_box, is 1px wider than the sum of its child widths. The first child,#content, is floated to the left of that “extra” pixel, and the second child,#sidebars, is floated to the right of it. The border that appears to occupy the extra pixel is actually a background image of#content_box. - The second red line (far right border) doesn’t have a purpose as far as I can tell. It might be caused by the browser rounding the conversion of pixels to ems, or it might just be a minor bug in the default CSS. With the Thesis CSS styles being dynamically built by WordPress, I’m not about to invest the time to figure out what’s causing that empty pixel. It could also be related to the 11px margin at the far right (instead of 12px like all the other margins).
The Phi-Column Layout
Here’s the diagram of the Thesis phi-column widths:

Again, these widths are only a reference so you can tell which element is which in the diagram
#content_box{width: 991px;}
#content{width: 612px;}
#sidebars{width: 378px;}
#sidebar_1{width: 233px;}
#sidebar_2{width: 144px;}
Follow These Steps
Go to WP Admin → Thesis Options → Design Options → Site Layout → Columns, and enter in these widths:
- Content: 576px
- Column 1: 209px
- Column 2: 120px
Add this CSS code to your custom.css file:
#sidebars{background:url('../custom/images/dash-ddd.gif') 23.3em 0 repeat-y;}
#sidebar_1{border-right:0;}
#sidebar_2{float:right; width:14.4em;}
#sidebar_2 ul.sidebar_list{padding-right:1.2em;}
Create a 1×2 pixel .gif that matches your border color. If you are using the Thesis default color (#DDD), you can just copy this one. Save the .gif image to your custom images folder (or use whatever folder you want, but be sure to update the CSS to point to that location).
That’s it. You’re golden.
{ 1 trackback }
{ 30 comments… read them below or add one }
You are a dick head…in the nicest sense :D
Nice articles on Thesis, solid stuff..
Cheers
Interestingly enough, you can do all this with the **** theme with no custom CSS. :)
Danny,
First of all, I highly doubt that any WP theme can be configured with golden-ratio columns, without analyzing the CSS and performing calculations on the column dimensions.
Second of all, I absolutely hate visual editors, so that would definitely NOT be considered a selling point for me personally.
Lastly, I went to the website for the WP theme you tried to plug, and I saw that your name appears in the rotating banner of endorsers, and your website contains an affiliate link for that theme.
I have come to the conclusion that your comment is nothing more than a useless endorsement that benefits no one but yourself. Therefore, I have replaced the theme name with asterisks.
**** affiliate here (just so you don’t edit my comment as well). **** can be configured with golden-ratio columns.
Just tell me the pixel widths you want to see and I screen cast it. :-)
Sidebar 2 = 144px
Sidebar 1 = (Sidebar 2)(
φ)Content = (Sidebar 1)(
φ)It may not be a selling point for you, and that’s fair enough. But your point about specific sized columns is incorrect – the asterixed theme can have any dimensions put into play with no need for CSS.
And as a paid up member of the Thesis community too, I know what the theme can do – cheers :)
So can Thesis, as shown in the image in my comment below. I have yet to hear or see anything that **** can do that Thesis can’t. They both let you input widths without messing with CSS. Neither has a magic “Golden Ratio” button.
Am I missing something?
Can Thesis create completely different groupings of sidebar widgets on different pages (with no CSS)? Like the sidebars on these three pages?
****
****
****
The last time I used Thesis, it limited you to a global setting for the sidebars.
John,
So…you’ve answered my question with a question…and then you dropped 3 URLs…and you think that’s gonna fly?
Asterisks all around.
PS – My apologies if it seemed a plug, that was not the intent – just mentioning that you it’s not always necessary to go the custom CSS route.
Cheers again.
Danny, I don’t know you from Adam but quite frankly that comment was an insult to my intelligence.
It was a blatant plug. Period.
BTW – Considering you are a fully paid up member of Thesis then you would know (as per SEO mofo’s reply) that you can amend column widths at will in the admin panel without having to go anywhere near a css file.
To imply that **** Theme is capable of this and Thesis isn’t is a cheap shot and misleading.
——–
SEO mofo – First time here and just want to say, love the article, love the site and love the attitude too! Thanks.
Actually Richard, yes, I do know that you can choose widths in Thesis. However, this post was about using CSS to differentiate – I was just suggesting it’s not needed.
My original comment didn’t say Thesis couldn’t do it; it said another theme could. Different comment.
Danny,
The post only mentions CSS because I wanted to add my own dashed border that wasn’t included as part of the column widths, and I wanted to have total control over the margins and padding. With everything defined in em units, the golden ratios are maintained even when the default font size is changed. If **** can come even close to duplicating this functionality–without using CSS–then I’d be very impressed. However, until someone shows me a screen capture or screen cast of **** doing that, I can only assume that there is no significant difference between the two themes…in which case, there doesn’t seem to be any point of mentioning **** in the comments of this post.
**** allows for any pixel width and any number of columns. (Sidebar 2)(φ) does not compute! :-D
Specific pixels, please. Thanks!
John,
That’s exactly my point. Thesis doesn’t require you to use a custom CSS file–it’s optional. Most people simply use the formatting options from the Thesis WP admin menu, which looks like this:
If you still want to screen cast ****, feel free. The column widths shown above take the margins and padding into account. If you want the raw widths, they are:
Sidebar 2 = 144px
Sidebar 1 = 233px
Content = 612px
You have just got yourself a new fan – not for your great golden ratio idea [not using 3 columns, or Thesis, at the moment], but for your brilliant take-down of commenter #2. Also for your logo and wit in general. Thank you. :)
Thanks, LaVonne! Commenter #3 is dangerously close to being asterisked too. I’m giving him the benefit of the doubt so far.
=)
Why am I dangerously close to being asterisked?
1. Because you mentioned **** on my Thesis post. (I let it slide, because you disclosed your affiliation.)
2. You probably didn’t read my post. If you had, you would have known that
φ= 1.61803399, and therefore you could have calculated these numbers yourself:Sidebar 2 = 144px
Sidebar 1 = (Sidebar 2)(
φ) = 233pxContent = (Sidebar 1)(
φ) = 612px3. You said you were going to make a screen cast that would show us how much easier it is to make a “
φ-column” layout in ****, but you haven’t.Correction:
Sidebar 2 = 144px
Sidebar 1 = (Sidebar 2)(
φ) = 233pxContent = (Sidebar 1 + Sidebar 2)(
φ) = 612pxSidebar 2 is the column on the far right. Sidebar 1 is the middle column. Those two together, multiplied by
φ, plus the 2 px of borders…equals 612px.Since when is it not cool to mention a competing product in a blog post? When I write about ****, and people comment and mention Thesis, I think it’s healthy. But that’s just me.
In terms of the screencast, I’m happy to do it, but based on your attitude towards opposing views, I think I could be wasting my time. Correct me if I’m wrong.
Yes, that is just you. I don’t know why you would think it’s cool to promote your affiliate product on someone else’s blog…especially when it has abso-fuckin-lutely NOTHING to do with the post. Your mention of **** brings as much to the table as all the bullshit spam comments I delete on a daily basis.
I don’t have anything against “opposing views,” as long as those commenters support their side. You didn’t support your side. You avoided everything I said, and you added NOTHING to the discussion. So no…don’t waste any more of your time or mine…this conversation is over.
#2 likes to name-drop everywhere and anywhere there is a post about Thesis. Period.
Hi Greg,
Thank you for not shamelessly plugging your WordPress theme like #2 has. I hereby reward you with an affiliate link (which I might retract if I ever get off my ass and sign up for an affiliate ID of my own). =P
Anyone interested in purchasing the Thesis WP theme…I encourage you to do so through Greg, by using his affiliate link here: Explore Thesis
And there was me thinking that mentioning a theme that didn’t need CSS to give you different sized columns to get specific widths would have been a fair comment. Hey ho, live and learn… ;-)
PS, Greg – not everywhere. Let’s keep the realism here, fella :)
Thank you for the article, i was needing those diagrams of the columns widths page configuration, it will help me a lot.
SEO mofo,
First, thank you for your many posts on here and the SEO snippet tool which I have begun using on a regular basis. I have found your work extremely helpful and appreciate the logic and reason.
Second, I have implemented the golden ratio with Thesis on a few sites because it is much more aesthetically pleasing. I have found that Sidebar 2 renders weird and is usually pushed down below Sidebar 1. I can screenshot the issue if you want for further diagnosis. Perhaps it has to do with my browser (Safari 4.0.4/Firefox 3.5.7)? But I do not think so.
I fixed the issue with this slight change:
BEFORE – #sidebar_2{float:right; width:14.4em;}
AFTER – #sidebar_2{float:right; width:14.3em;}
Sometimes 14.2em change is needed. Any idea if other browsers or operating systems are affected by such precise changes? Like with the comment box lining up and rendering differently in various browsers.
Hi Trace,
It’s difficult to say what would be causing that…without an example to look at. But I can tell you that different browsers handle pixel rounding differently. So for example, if you define a column width as 14.2em, and the font-size is 16px, then the width would be 227.2px. Some browsers will round that down to 227px, and some (Internet Explorer) will round it up to 228px. If your layout only has room for 227px, then it would “break” in IE by pushing column 2 down the page to a place that has room for 228px widths.
If you are interested in reading more about the different browser behaviors, check out John Resig’s article on sub-pixel rounding in different web browsers.
Oh…and thanks for the kind words! =)
SEO Mofo, I’m more of a designer than a seo, but I must say the way you created this article is great, I was able to understand, and buzz through it with ease, completing the issue I had searched for.
Thank you. Stay classy.
/subscribe