Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed The CSS calc() Function!
You have completed The CSS calc() Function!
Preview
There are many ways you can use calc() in your projects. This video covers simple examples that demonstrate the basics of calc().
Resources
calc() operators
-
+Addition -
-Subtraction -
*Multiplication -
/Division
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Did you know that you can do
simple math operations with CSS?
0:00
In this workshop series,
I'm going to teach you how to use
0:03
the CSS calc function,
to add a little logic to your CSS.
0:06
First, you'll learn the basics of calc.
0:11
Then I'm going to cover 3 useful ways
you can use calc in your web projects.
0:13
Like setting background position offsets,
displaying full width elements
0:17
inside padded containers, and
creating fluid grid columns.
0:21
calc is a CSS function that performs
a calculation and returns a result.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up