Solved

PX vs em for layout

Posted on 2013-01-04
3
262 Views
Last Modified: 2013-01-29
I haven't come accross any examples on using em for layouts vs px take a look at this framework

http://goldilocksapproach.com/

The argument is that twitter bootstrap uses px design not em for layout what is a better approach and is there any better examples of this.
0
Comment
Question by:stargateatlantis
  • 2
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38745850
So the question is what? should you just do what twitter does? Should you do everything with px?  

The answer to both is obviously no.

Look at the brief explanation of when each unit type is appropriate here.

Handicapping yourself by limiting what unit type you will use is like putting square wheels on an automobile.  The are options and a range of possibilities, because pro developers want be able to product their own design instead of just copying or using a template that someone else wrote.

Cd&
0
 

Author Comment

by:stargateatlantis
ID: 38745906
I am seeing people using em for grid layout. Which is better twitter bootstrap uses px
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 38745962
There is no such thing as better.  There is appropriate. There is developer preference. There is compatible with other components.  There is specific requirements for usability and accessibility.  

There is no better.  There is no one size fits all, and there is no framework, template, tool, or package that solves all problems.  If you want to do web development you learn to code well enough to be able to experiment, visualize, and determine what is appropriate for the piece you are working on.

OR...  you let someone else limit you by using their code and having no control of what happens when they change something.

Cd&
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
css icomoons will not display on page 14 33
push Book Today button to right 10 39
specific navigation button disappears on mobile devices 1 52
Insert Button on a table 16 38
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question