Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PX vs em for layout

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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…
Suggested Courses

722 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