Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PX vs em for layout

Posted on 2013-01-04
3
Medium Priority
?
266 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

885 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