Solved

PX vs em for layout

Posted on 2013-01-04
3
263 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

752 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