Posted By

COBOLdinosaur on 06/18/13


css design calc responsive

Versions (?)

6 even spaced elements across the page using calc() for sizing

 / Published in: CSS


The CSS calc() function can be used anywhere a length, frequency, angle, time, number, or integer is required. It can be used to apply values for width/height; font-size; margins; padding; borders; shadows; border radius; text-indent;top/right/bottom/left(for position); and any place that a number is required.

  1. .formbox {
  2. width: calc(100% / 6 - 1px); /* 1px slack is required as workaround for IE sizing bug */
  3. float:left;
  4. text-align:center;
  5. }

Report this snippet  

You need to login to post a comment.