Solved

PX vs em for layout

Posted on 2013-01-04
3
259 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now