1 minute

Calculating Measurements in LESS (Video Tutorial)

No one ever claimed that CSS was the right place to perform mathematical calculations; in fact, it’s near impossible even for simple functions. (Even with the CSS3 calc function, it can be difficult.) That’s where LESS comes in. The ability to perform functions is one of its strong points.

In this video tutorial, you will learn how to complete calculations using LESS. The tutorial takes you through building an evenly spaced grid using just a hint (or two) of math.

Using calculations, you will create a row of same-size and evenly spaced boxes. A good understanding of coding practices is needed to complete this video lesson.

What you will learn in this tutorial: How to use LESS to perform mathematical functions.

Video run time: 4 minutes

Newsletter Template Builder

With Postcards you can create and edit email templates online without any coding skills! Includes more than 100 components to help you create custom emails templates faster than ever before.

Try FreeOther Products
David East

David East is a Developer Programs Engineer for Google, working on Firebase in San Francisco. He's a die-hard JavaScript fan and a budding iOS developer. He also likes waffles. If you like to write code—or eat waffles—follow him on twitter: @_davideast.

Posts by David East

Never miss an article or news again.

Sign up to get fresh stuff in your email monthly. For those who want to keep in touch with web design and development trends and tools.

Learn More About Newsletter
Cookie Icon
We use cookies to ensure that we give you the best experience on our website.
  • I disagree
  • I agree