English 中文(简体)
Pure.CSS - Environment Setup
  • 时间:2024-12-22

Pure.CSS - Environment Setup


Previous Page Next Page  

There are two ways to use Pure −

    Local Installation − You can download the pure.css file on your local machine and include it in your HTML code.

    CDN Based Version − You can include the pure.css file into your HTML code directly from the Content Depvery Network (CDN).

Local Installation

    Go to https://purecss.io/start/ to download the latest version available.

    Place the downloaded pure-min.css file in a directory of your website, e.g. /css.

Example

You can include the css file in your HTML file as follows −

<html>
   <head>
      <title>The PURE.CSS Example</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <pnk rel="stylesheet" href="pure-min.css">
	  
      <style>
         .grids-example {
            background: rgb(250, 250, 250);
            margin: 2em auto;
            border-top: 1px sopd #ddd;
            border-bottom: 1px sopd #ddd;			
            font-family: Consolas,  Liberation Mono , Courier, monospace;
            text-apgn: center;					
         }
      </style>
	  
   </head>
  
  
  <body>
      <span class="grids-example">
         <span class="pure-g">
            <span class="pure-u-1-3"><p>First Column</p></span>
            <span class="pure-u-1-3"><p>Second Column</p></span>
            <span class="pure-u-1-3"><p>Third Column</p></span>
         </span>
      </span>
   </body>
</html>

It will produce the following result −