Home » Materialize CSS Installation

Materialize CSS Installation

by Online Tutorials Library

Materialize CSS Installation

There are two methods to install and use Materialize CSS.

Local Installation: You can use Materialize CSS by downloading the materialize.min.css and materialize.min.js files on your local system and include it in your HTML code.

CDN Based Version: You can use Materialize CSS by including the materialize.min.css and materialize.min.js files into your HTML code directly from the Content Delivery Network (CDN).


How to use Local Installation

Step1: Go to http://materializecss.com/getting-started.html to download the latest version available.

Materialize CSS Installation 1
Materialize CSS Installation 2

Step2: Put the downloaded materialize.min.js file in a directory of your website, e.g. /js and materialize.min.css in /css.

Example:

Test it Now


How to use CDN Based Version

Include the materialize.min.js and materialize.min.css files into your HTML code directly from the Content Delivery Network (CDN). cdnjs.cloudflare.com provides content for the latest version.

Example

Let’s rewrite the above example using materialize.min.css and materialize.min.js from cdnjs.cloudflare.com CDN.

Test it Now

It will show the same result.

You may also like