Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Understanding and using CALC() Reply To: [Solved] Understanding and using CALC()

#166253
Chris Coyier
Keymaster

A couple things come to mind here. First why don’t you use something a little simpler. For example checkout how bootstrap accomplishes the grid: http://getbootstrap.com/css/#grid

Chris also has a good example here: https://css-tricks.com/dont-overthink-it-grids/

Also, keep in mind that because of browser support anytime you want to use calc(); you also need to use -webkit-calc(); for older versions of Chrome & Safari. For more info on browser support: https://developer.mozilla.org/en-US/docs/Web/CSS/calc