pure.css
file on your system and include it in your HTML code.pure.css
file into your HTML code directly from the Content Delivery Network (CDN).<html>
<head>
<title>The PURE.CSS Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="pure-min.css">
<style>
.grids-example {
background: rgb(250, 250, 250);
margin: 2em auto;
border-top: 1px solid yellow;
border-bottom: 1px solid red;
font-family: Consolas, 'Liberation Mono', Courier, monospace;
text-align: center;
}
</style>
</head>
<body>
<div class="grids-example">
<div class="pure-g">
<div class="pure-u-1-3"><p>First Column</p></div>
<div class="pure-u-1-3"><p>Second Column</p></div>
<div class="pure-u-1-3"><p>Third Column</p></div>
</div>
</div>
</body>
</html>
Pure.CSS
file into your HTML code directly from the Content Delivery Network (CDN). yui.yahooapis.com provides content for the latest version.<html>
<head>
<title>The PURE.CSS Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<style>
.grids-example {
background: rgb(250, 250, 250);
margin: 2em auto;
border-top: 1px solid yellow;
border-bottom: 1px solid red;
font-family: Consolas, 'Liberation Mono', Courier, monospace;
text-align: center;
}
</style>
</head>
<body>
<div class="grids-example">
<div class="pure-g">
<div class="pure-u-1-3"><p>First Column</p></div>
<div class="pure-u-1-3"><p>Second Column</p></div>
<div class="pure-u-1-3"><p>Third Column</p></div>
</div>
</div>
</body>
</html>
pure-u-1-2
represents 1/2 or 50%
width, pure-u-2-5
represents 2/5
or 40%
width and so on.pure-u
or pure-u-*
classnames.Pure.CSS
has a very easy and responsive CSS to design a form. You can create different types of forms using Pure.CSS
. Following is a list of some classnames :Pure.CSS
:Pure.CSS
provides vertical menus by default. You can change the vertical menu to horizontal menu by adding the class name "pure-menu-horizontal
".show:inline-block
.