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 Using CSS Variables!
You have completed Using CSS Variables!
Preview
Now that you've learned how and where custom properties and var() work, you should know where they do not work, and best practices for using them.
This video doesn't have any notes.
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
[SOUND] First,
var is invalid if used in a selector.
0:00
This will not work.
0:03
[SOUND] var is also not
valid as a property name,
0:04
you can only use var in CSS values.
0:09
You also can't use var in a media
query expression like this.
0:13
[SOUND] Finally, you can't use the var
function to create a length value.
0:19
This is an invalid value.
0:23
[SOUND] Again, be sure to use calc to
build your length values using var
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