Design Engine
Training Classes/Tutorials for Designers, Engineers, & 3D Professionals


Google+

Ideas, Thoughts, Perspectives

June 3rd, 2011

Golden Ratio and CSS

More articles by »
Written by: alexsimes
Tags: , , , , ,

When designing the visual aspect to a website or creating images in general the dilemma of choosing proportions inevitably comes up. By choosing proportions I mean the idea of designing a space to hold the informational content of a website or visual information of an image. Occasionally these decisions are made simpler when making the proportions of information container boxes (which I will refer to as a “div” from now on) just big enough to contain the information. For example, often on websites that have long blocks of text, the div that contains that text generally is not given specific proportions and so the ratio it ends up having is just the width of the browser screen and the height of the number of lines of text. This is an example of a default proportion because no specific proportion was given to the div box and so it simply expanded just enough to contain the text inside. This can also be though of as typing text into a word editor and deciding the proportions of the text are the window width by the number of lines. This often is not visually ideal because screen widths of browser windows change and so a designer that has a well thought out layout for the information of a website generally gives div boxes specific sizes using CSS (“Cascading Style Sheets”, CSS controls most of the visual aspects of a website).

There are a number of “tricks” a designer may have in mind when presenting the content of information to a website. One of the most important ideas would probably be uniformity. Websites that lack rules of where to place information are often difficult to navigate and generally messy visually. Symmetry also can play an important role in designing a website and can be easily achieved using CSS by centering the website’s information and planning the sizes of divs. The last idea I would like to mention is the proportions of the divs which will be how the information of a website is presented. I would also like to point out to any readers who are not familiar with making a website that divs often are information containers to other div boxes that also contain their own information.

Certain proportions are considered to be visually pleasing and one of the most famous examples is the golden ratio. This ratio has been used by many artistic disciplines and has been observed in many natural “designs” (some examples may be spirals of seashells, branching structure of trees, roughly the proportions of limbs of people, ect. See image below).

Golden Spiral and Sea Shell

The ratio itself is an irrational number but is often simplified to 1.618 for use (The exact value is the square root of 5 plus 1 divided by 2). The significance of this number is that if it is used as the length of a rectangle where the height is equal to 1 then the finding the square that is 1 by 1 inside the rectangle leaves leftover area inside the rectangle. That leftover area has the same proportions as the original large rectangle (see image below).

Golden Rectangle

What this means is that the ratio is unchanged by expansion or contraction. This property is useful when designing on a computer because the size of the information is abstract. The informational content of a website can be shown at any size and it would still make sense because it is not grounded in the physical world. Placing information inside of a div box that has the golden proportions then would allow for a presentation of information that follows classical ideas of visual beauty. In addition because the golden rectangle can be divided into squares to find new smaller golden rectangles, information can be imbedded as divs with these proportions one inside another. Information of importance would be placed inside the largest rectangle with sub category information in the contracting rectangles. The result would be a visually pleasing layout spatially with information organized conceptually by relative size.

Here is an example of how to set up div boxes following these proportions: Text box example

Other Resources:

More Information on the Golden Ratio: Golden Ratio

Article Written by: Alex Simes


About the Author

alexsimes
Programmer, web designer, and gymnastics coach




Design Engine Industrial Design Training Pro Engineer
 
 

 

Carpet Cloak for Invisibility

“For generations, the topic of invisibility has been of great interest. Although it was once dismissed as science fiction, it has now become reality on a small scale. Physics textbooks around the world must be rewritten and s...
by Bart Brejcha
0

 
 
skeleton part for creating the welded bicycle & jig components

Top Down Design: And its History

  Brief History of Top Down Design It all starts with Mil Spec standards. “MilSpecs”, are used to help achieve standardization objectives by the U.S. Department of Defense.  Part of  that specification basica...
by Bart Brejcha
0

 
 

ThingWorx, Augmented Reality, and IoT in the workplace

AR/VR, along with the Internet of Things (IoT), has been talked about for a few years now as the next big thing. To help get it straight, Techcrunch explained it like this: Virtual Reality (AR): places users inside the virtual ...
by Bart Brejcha
0

 

 

Photoshop Level One: Dec 16-17

Adobe Photoshop Level 1 Course Duration: 16 / 32 / 40 hours  Tuition: $150 / $275 / $325 USD Overview: The purpose of this Adobe Photoshop training course is to get you acquainted with the basics of Photoshop and to rapidl...
by Bart Brejcha
0

 
 

BioLite FirePit: Making Fires Toasty Instead of Smokey

If you are an outdoors lover like me, you probably like to go camping , grill food, or sit outside at night with friends around a warm fire. Man has been doing these activities since he learned how to make a fire, and i’m...
by Bart Brejcha
0

 



One Comment


  1. Shouldn’t that be b over a in your first formula?



You must be logged in to post a comment.