From the course: Bootstrap 4 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

CSS variables

CSS variables - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

CSS variables

- [Instructor] Bootstrap has some features that allows you to work with a new feature of CSS called CSS Variables. Now CCS Variables are a newer feature within CSS that allows you to store a set of property values that you can reuse within your CSS. Now this version of Bootstrap provides pre-written CSS variables that can be used in developing your projects and customizing your colors. CSS Variables are so new that browser support is an issue. They're not supported in any version of Internet Explorer, and only on very new versions of the other browsers. Make sure you check this URL for browser support info. To use these variables, you have to use the var function, and then use the name of the variables. All the variables start with the name that begins with two dashes. You can also use the root selector to redefine the values for any of the variables. Now when you do this, make sure that you put your CSS rules after you load the Bootstrap CSS. You should note that using these…

Contents