Math is beautiful. Does that sound a little strange? I sure thought so when I first started designing. Math is so rigid and often times boring, or so I thought. You would be surprised to find out that most aesthetically pleasing designs, works of art, objects and even people have math in common. Specifically the Golden Ratio, also known as the divine proportion, which is designated by the Greek letter Φ (phi). This tutorial will cover the anatomy and layout of a website and how the Golden Ratio relates.
Anatomy of a Web Page
The elements of a web page are like organs; they are vital to a properly functioning and aesthetically pleasing web page.

These are the main elements of a web page. There are many different ways to organize them but this is perhaps the most common basic layout used online.
Container
All web pages use a container and for the same purpose; to contain page elements, however the way it is accomplished varies. For example, the body tag or a div is most commonly used. In the past, even a table has been used (do not use a table as your page container, it is a depreciated method). Think of the container as the external walls of your house in which your bedrooms, kitchen, living room, etc. are then placed.
Types of container:
- Liquid: Expands to fill the width of the browser window.
- Fixed: A specific width you choose which does not change regardless of browser window size.

Header
The header isn’t really a specific element although some may consider it to be. It is more generally used in referring to the top section of your web page where your logo, navigation, tagline, etc. are located. Many people prefer to keep these elements contained within a div for easier page styling, element separation and/or element containment. The header would be considered a container so it would have two types to choose from: liquid or fixed as mentioned above.

Logo
Your logo is your identity and branding. The most common placement for the logo is within the header, aligned left. We read from left to right, top to bottom, so your logo will most likely be the first element your visitors look at.
Navigation
Page navigation is one of the most important elements; your visitors need it to use your website. It should be easy to find and use, which is why it is almost always located within the header or at least near the top of the page. Sometimes both types of navigation are used for high content websites.
Types of navigation:
- Horizontal: A series of links displayed inline, usually referred to as “navigation”.
- Vertical: A series of links displayed as a vertical stack, usually referred to as “menu”.

Main Content
As everyone knows (or should), content is king! When people visit your site, this is the element they will be looking for primarily. It should be the main focal point of a web page so visitors find what they are looking for quickly.
Sidebar
The sidebar is the element with your secondary content such as advertising, site search, subscription links (RSS, Twitter, Email, etc), contact methods, etc. This element isn’t necessary although many websites use it. It is most often right aligned but can be left aligned or both (two sidebars) so long as it doesn’t disrupt main content viewing. For websites that use horizontal AND vertical navigation, the sidebar is often replaced with the vertical navigation element.

Footer
The end of a web page should always use a footer to let your visitors know they have reached the completion of your web page. Like the header, the footer isn’t really a specific element but more of a containing section. Within your footer will be copyright, legal and contact information primarily. It’s a good idea to include a few links to the most important sections of your site such as the top of the page, home page, contact page, etc. Some websites use this area as an opportunity to mention related material or other important information.
“Whitespace”
This is any area of the web page that is not covered by typography or other content. You may feel the strong urge to fill as much empty space as possible but don’t do it! Empty space is just as important to a good web page design as the content to be used. You can see how the NetTuts site uses empty space very effectively to help guide visitors through content, create page balance and give a good sense of content separation.
So that covers the anatomy of a web page. Now lets take a look at how the Golden Ratio relates to these elements.
The Golden Ratio and Using Grids
Remember earlier when I said math was beautiful? We perceive visual appeal based on ratio (i.e. The Golden Ratio). For thousands of years artists, designers, architects, etc. have either intentionally or unintentionally used a common ratio in their work that is aesthetically pleasing. What is the magic number? 1.62 (actually 1.618…) I won’t get into the origins of this number but I will tell you how to use it.

Using the golden ratio is very simple. Lets say you want to find the width of your Main Content and Sidebar columns. You would take the total width of your content area (we’ll use 900px for this example) and divide that by 1.62. As shown in the example above we divide 900px by 1.62 and get 555.55px. We don’t need to be exact so we will round it off to 555px. Now you know your main content element will be 555px wide and your sidebar will be 345px! How easy is that?!
But wait! The fun doesn’t stop there. You can also apply the Golden Ratio to other element’s width in relation to its height or vice-versa. This produces aesthetically pleasing elements with the Golden Ratio proportions.

Using Grids
If you’re like most people though, you won’t want to pull out a calculator every time you want to use this ratio. To simplify the process, we can use a simple grid. All you do is divide your width and/or height by thirds.

Each division can be even further reduced by thirds, producing a more detailed grid. If you read the previous article “A Close Look At the Blueprint CSS Framework” you will see that the Blueprint CSS framework uses a detailed grid system. Not only does the grid make designing easier and faster but also it creates an aesthetically pleasing layout! If you aren’t already using a grid when designing, now may be a good time to give it a try. You can download a grid template for fireworks, photoshop and more from http://960.gs, which is another fantastic CSS framework that uses grids.

As you can see, NetTuts abides by the Golden Ratio quite well. The top one third of the page is divided again into thirds to show how even the header section breaks down into smaller increments of thirds, very close to the Golden Ratio. No wonder why the NetTuts design is so appealing!
If you’re new to design I highly encourage you to find some popular sites, evaluate their element layout and how it abides by the Golden Ratio and grids. Then take some time to practice using the Golden Ratio with your elements and placing them in your layout using a grid.







Everything in this universe follows a system. and indeed webdesign too, follows a system.
I read some above posts that say that following these systems, e.g. the golden ratio, severely limits creativity and shunts originality…
Here’s a different perspective… do you see any 2 trees of the same species being exactly alike? Or do you see 2 people looking and acting exactly the same? Both tree and human are created/evolved based on their same frameworks…Yet both tree and human are on their own unique in each n every way..
Hmmm
Thanks for sharing your valuable thoughts.
I have been reading your blog last couple of weeks and enjoy every bit. Thanks.
Small Business Website and Small Business Web Design. Whether you’re a small
business, non-profit, club or individual, we can build you a powerful site in no time.
wawo, wonderful images. it is great to see. i think it is photo shoped, but it’s amazing .
wow, wonderful images. it is great to see. i think it is photo shoped, but it’s amazing .
That’s really a fantastic post ! i added to my favorite blogs list..
Nice works.Keep up.Even God calculate may be using pi to create this Universe.I love it and I will use it as a basic fundamental.I’m a beginner in web design and I need helpful stuff like this
There is nothing at all special about the golden ratio, it’s a load of BULLSHIT, the human mind likes patterns, not just that one! You people are eating this up without question, that makes you very very unintelligent. You could make a building based on ANY number of ratios, and it would look JUST AS AESTHETICALLY PLEASING! Music for example, IS NOT based on this, it is based on a 12 note scale which is created by the ratio 1 / 1.05946 which equals .943874, this number is used to place frets on a guitar, to establish the pitch relationships, the same ones that make all the music you have ever heard in your life! Pretty amazing huh? Well it’s not the golden ratio! OUR MINDS JUST LIKE PATTERNS, there is NOTHING special about this, stop obsessing over math. Math is just a way to describe what we perceive, it shouldn’t be held as some kind of mysterious pattern throughout history, thats ridiculous.
I really impressed while reading your post…..Thank you so much , it will useful to every one….
I is quite interesting to see that math and golden mean appears again in another topic. Very interesting. I should take time to modify my website.
Thanks for this fresh perspective. Would be interested in your assessment of health related blogs and the impact of their messages, etc Perhaps encouraging a group of volunteer contributors can multiply the effort. Also want to know your opinion about more than 3 posts a day on SEO-does it make a difference?
Thanks and keep up the great work.
I am happy to find so many useful information here in the post, thanks for sharing.
I do believe the yahoo one should say “Yawho?”
All right, you’ve inspired me to try this.
Nice article…..I really impressed while reading your post…..Thank you so much , it will useful to every one….
USELESS!
What I find interesting is that even the design of us humans is in co-ordination with the divine proportion.
If you don’t believe me, measure the height of the top of your head to the ground, and then measure the height from your belly button to the ground, and divide the first measurement by the second.
What do you get?… 1.618 !!! (if you measured accurately, lol)
P.S. There are many more examples of this proportion in nature
P.S. The above emoticon was supposed to be a wink, lol
Nice article, and I whole-heartedly agree with the principals, although I think the example website doesn’t follow the rules. The eye forms borders around sections and it is these “apparent” borders which need to adhere to the “rule”. The header section can be broken into the three sub sections, but their apparnet borders do not form any pleasing proportions.
I say that if you’re going to use the rules – stick to them very closely. Don’t say “well they kinda fit” – they do or don’t – As any architect will tell you (even a thousand years ago) miss the proportion by a small amount, and you’ve missed it. It doesn’t look right.
Still – its a good rule and graphic designers are always considering the proportions and wether they do conciously or subconciously – 1.618 looks “right”
Consider using a grid system instead of the proportion – i think it works better – it helps the eye form these apparent borders which are important to rapid comprehension. The eye provides a neurological pre-amp function to the brain and filters out bad or messy information.
http://www.thegridsystem.org/
Still like I said, 1.618 rules da (vinci) world