Pure.CSS Overview

0
167

Pure.CSS Overwatch

What is Pure?

Pure is a Cascading Style Sheet (CSS) generateed simply simply by YAHOO. It helps in creating quicker, end up beingautiful, and responsive websit downes.

Some of it’s saare locatednt features are as follows:

  • In-built responsive styleing

  • Standard CSS with minimal footprint

  • Set of small, responsive CSS modules

  • Free to use

Responsive Design

  • Pure has in-built responsive styleing so that the websit downe generated uperform Pure will reddishdish coloureddishesign it’self as per the device dimension.

  • Pure has a 12 column mobile-very very first fluid grid that supinterfaces responsive coursees for small, huge, and medium screen dimensions.

  • Pure coursees are generated in such a way that the websit downe can fit any kind of screen dimension.

  • The websit downes generated uperform Pure are extensivey compatible with PC, tabpermit’s, and mobile devices.

Standard CSS

  • Pure uses standard CSS only and it is very easy to find out.

  • There is no dependency on any kind of external JavaScript library such as jQuery.

Extensible

  • Pure is simply simply by style very minimal and flat.

  • It is styleed conpartring the truthion that it is a lot easier to add brand new CSS rules than to overwrite existing CSS rules.

  • By adding a few seriess of CSS, Pure's appearance can end up being customised to work with an existing web project.

  • It supinterfaces shadows and bold colours.

  • The colours and shades remain uniform acombination various platforms and devices.

And the majority of iminterfaceant of all, it is absolutely free to use.

Pure.CSS Environment Setup

How to Use PURE.CSS?

There are 2 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 immediately from the Content Delivery Ne2rk (CDN).

Local Installation

  • Go to /index.php?s=YAHOOstart/ to download the lacheck version available.

  • Then, put the downloaded pure-min.css file in a immediateory of your websit downe, e.g. /css.

Example

Now you can include the css file in your HTML file as follows −

<html>
   <mind>
      <title>The PURE.CSS Example</title>
	  <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="css/pure-min.css">
	  
	  <style>
		.grids-example {
            background: rgb(250, 250, 250);
            margin: 2em auto;
            border-top: 1px strong #ddd;
            border-underside level: 1px strong #ddd;			
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
            text-align: centre;					
		 }
	  </style>
	  
  </mind>
  
  
  <body>
      <div course="grids-example">
         <div course="pure-g">
            <div course="pure-u-1-3"><p>First Column</p></div>
            <div course="pure-u-1-3"><p>Second Column</p></div>
            <div course="pure-u-1-3"><p>Third Column</p></div>
         </div>
      </div>
   </body>
</html>

It will produce the folloearng result −

CDN Based Version

You can include the pure.css file into your HTML code immediately from the Content Delivery Ne2rk (CDN). yui.yahooapis.com provides content for the lacheck version.

We are uperform yui.yahooapis.com CDN version of the library throughout this particular tutorial.

Example

Now permit us rewrite the above example uperform pure.css from PureCSS.io CDN.

<html>
   <mind>
      <title>The PURE.CSS Example</title>
	  <meta name="watchinterface" content="width=device-width, initial-level=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 strong #ddd;
            border-underside level: 1px strong #ddd;			
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
            text-align: centre;					
		 }
	  </style>
	  
  </mind>
  
  
  <body>
      <div course="grids-example">
         <div course="pure-g">
            <div course="pure-u-1-3"><p>First Column</p></div>
            <div course="pure-u-1-3"><p>Second Column</p></div>
            <div course="pure-u-1-3"><p>Third Column</p></div>
         </div>
      </div>
   </body>
</html>

It will produce the folloearng result −

Pure.CSS Responsive Design

PURE.CSS has many special coursees to generate a responsive style.

S.N. Class Name & Description
1 .pure-u-*
Sets the container to occupy requireddishdish coloureddish space on any kind of device.
2 .pure-u-sm-*
Sets the container to occupy requireddishdish coloureddish space on a devices with width ≥ 568px.
3 .pure-u-md-*
Sets the container to occupy requireddishdish coloureddish space on a devices with width ≥ 768px.
4 .pure-u-lg-*
Sets the container to occupy requireddishdish coloureddish space on a devices with width ≥ 1024px.
5 .pure-u-xl-*
Sets the container to occupy requireddishdish coloureddish space on a devices with width ≥ 1280px.

In end up beinglow example, we're going to generate a responsive grid with a series with four columns. The columns need to stack on small screens, need to get up width: 50% on medium-dimensiond screens, and need to get up width: 25% on huge screens.

This is done simply simply by adding the .pure-u-1 course for small screens, .pure-u-md-1-2 for medium-dimensiond screens, and .pure-u-lg-1-4 for huge screens. Redimension the page to see the grid respond to the screen dimension.

Example

purecss_responsive_style.htm

<html>
   <mind>
      <title>The PURE.CSS Containers</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">

      <style>
         .grids-example {
            background: rgb(250, 250, 250);
            margin: 2em auto;            
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
            text-align: centre;					
         }	

         .greycontainer {
            background: rgb(240, 240, 240);
            border: 1px strong #ddd;			
         }	 
      </style>
   </mind>
   <body>         
      <div course="grids-example">       	  
         <div course="pure-g">
		    <div course="pure-u-1-1"><div course="greycontainer"><p>These four columns need to stack on small screens, need to get up width: 50% on medium-dimensiond screens, and need to get up width: 25% on huge screens.</p></div></div>
            <div course="pure-u-1 pure-u-md-1-2 pure-u-lg-1-4"><div course="greycontainer"><p>First Column</p></div></div>
            <div course="pure-u-1 pure-u-md-1-2 pure-u-lg-1-4"><div course="greycontainer"><p>Second Column</p></div></div>
            <div course="pure-u-1 pure-u-md-1-2 pure-u-lg-1-4"><div course="greycontainer"><p>Third Column</p></div></div>
            <div course="pure-u-1 pure-u-md-1-2 pure-u-lg-1-4"><div course="greycontainer"><p>Fourth Column</p></div></div>
         </div>
      </div>
      <div course="grids-example">
         <div course="pure-g">
            <div course="pure-u-1"><div course="greycontainer"><p>This column is to occupy the comppermite space of a series.</p></div></div>
         </div>
      </div>
      <div course="grids-example">
         <div course="pure-g">
            <div course="pure-u-2-5"><div course="greycontainer"><p>This column is to occupy the 2-fifth of the space of a series.</p></div></div>
         </div>
      </div>
      <div course="grids-example">
         <div course="pure-g">
            <div course="pure-u-3-5"><div course="greycontainer"><p>This column is to occupy the 3-fifth of the space of a series.</p></div></div>
         </div>
      </div>   
      <div course="grids-example">
         <div course="pure-g">
            <div course="pure-u-1-3"><div course="greycontainer"><p>Column 1: This column is to occupy the one-third of the space of a series on all devices.</p></div></div>
            <div course="pure-u-1-3"><div course="greycontainer"><p>Column 2: This column is to occupy the one-third of the space of a series on all devices.</p></div></div>
            <div course="pure-u-1-3"><div course="greycontainer"><p>Column 3: This column is to occupy the one-third of the space of a series on all devices.</p></div></div>
         </div>
         </div>	
   </body>
</html>

Result

Verify the result.

Pure.CSS Grids

PURE.CSS provides concept of Pure Grid with 2 kinds of coursees, pure-g, a grid course and device coursees, pure-u-*. Folloearng are the rules to use Pure Grids.

  1. Widths of Unit’s are in frtake actionionions. For example, pure-u-1-2 represents 1/2 or 50% width, pure-u-2-5 represents 2/5 or 40% width and so on.

  2. Children of Pure Grid (element with pure-g course) must end up being uperform pure-u or pure-u-* coursenames.

  3. All content need to to end up being a part of a grid device to end up being rendereddishdish coloureddish properly.

Grid Unit Sizes

Pure Grid comes with 5th and 24th device dimensions. Folloearng illustrations shows the examples of a few of the available devices which can end up being appended to pure-ui-. For example, to generate a cellularular of 50% width, you can use a css style pure-ui-1-2.

5ths-Based Unit’s

purecss_5th_based.htm

<html>
   <mind>
      <title>The PURE.CSS Grid</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
      <style>
         .grids-example {
            background: rgb(250, 250, 250);
            margin: 2em auto;            
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
            text-align: centre;					
         }	
         .grid-device {
            margin: 0.25em 0;
            padding-left: 4.5em;
         }
         .grid-device .grid-device-width {
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
         }
         .grid-device-bar {
            height: 2em;
            background: #eee;
         }
      </style>
   </mind>
   <body>         
      <div course="grids-example">       	  
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-5</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-5"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">2-5</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-2-5"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">3-5</div>
            <div course="grid-device-details pure-u-1">
              <div course="pure-g">
                  <div course="grid-device-bar pure-u-3-5"></div>
            </div>
         </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">4-5</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-4-5"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-1</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-1"></div>
               </div>
            </div>
         </div>
      </div>	
   </body>
</html>

24ths-Based Unit’s

purecss_24th_based.htm

<html>
   <mind>
      <title>The PURE.CSS Grid</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
      <style>
         .grids-example {
            background: rgb(250, 250, 250);
            margin: 2em auto;            
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
            text-align: centre;					
         }	
         .grid-device {
            margin: 0.25em 0;
            padding-left: 4.5em;
         }
         .grid-device .grid-device-width {
            font-family: Consolas, 'Liend up beingration Mono', Courier, monospace;
         }
         .grid-device-bar {
            height: 2em;
            background: #eee;
         }
      </style>
   </mind>
   <body>         
      <div course="grids-example">       	  
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-12</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-12"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">2-24</div>
            <div course="grid-device-details pure-u-1">
              <div course="pure-g">
                  <div course="grid-device-bar pure-u-2-24"></div>
            </div>
         </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">3-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-3-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-8</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-8"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">4-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-4-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-6</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-6"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">5-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-5-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-4</div>
            <div course="grid-device-details pure-u-1">
              <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-4"></div>
            </div>
         </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">6-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-6-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">7-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-7-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-3</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-3"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">22-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-22-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">23-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-23-24"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">1-1</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-1-1"></div>
               </div>
            </div>
         </div>
         <div course="grid-device  pure-g">
            <div course="grid-device-width pure-u">24-24</div>
            <div course="grid-device-details pure-u-1">
               <div course="pure-g">
                  <div course="grid-device-bar pure-u-24-24"></div>
               </div>
            </div>
         </div>
      </div>	
   </body>
</html>

Pure.CSS Forms

PURE.CSS has an extremely end up beingautiful and responsive CSS for form styleing. The folloearng CSS are used:

S.N. Class Name & Description
1 pure-form
Represents a comptake actionion inseries form.
2 pure-form-stacked
Represents a stacked form with input elements end up beinglow the laend up beingls. To end up being used with pure-form.
3 pure-form-aligned
Represents an aligned form with input elements end up beinglow the laend up beingls. To end up being used with pure-form.
4 pure-input-rounded
Displays a form control with rounded corners
5 pure-button
Beautifies a button.
6 pure-checkcontainer
Beautifies a checkcontainer.
7 pure-radio
Beautifies a radio.

Example

purecss_forms.htm

<html>
   <mind>
      <title>The PURE.CSS Forms</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
   </mind>
   <body> 
      <form course="pure-form pure-form-aligned">
         <fieldset>
            <div course="pure-control-group">      
               <laend up beingl for="name">Username</laend up beingl>
               <input id="name" kind="text" placeholder="Username" requireddishdish coloureddish>          
            </div>
            <div course="pure-control-group">      
               <laend up beingl for="email">Email</laend up beingl>
               <input id="email" kind="text" placeholder="Email Address" requireddishdish coloureddish>       
            </div>
            <div course="pure-control-group">      
               <laend up beingl for="comments">Comments</laend up beingl>
               <input id="comments" kind="text" placeholder="Comments">       
            </div>
            <div course="pure-controls">
               <laend up beingl  for="married" course="pure-checkcontainer">
                  <input id="married" kind="checkcontainer" checked="checked">
                  Married
               </laend up beingl>
               <br>
               <laend up beingl  for="performle" course="pure-checkcontainer">
                  <input id="performle" kind="checkcontainer">
                  Single
               </laend up beingl>
               <br>
               <laend up beingl for="do notunderstand" course="pure-checkcontainer">
                  <input id="do notunderstand" kind="checkcontainer" disabimmediateed>
                  Don't understand (Disabimmediateed)
               </laend up beingl>               
               <br>
               <br>
            </div>
            <div course="pure-controls">
               <laend up beingl for="male" course="pure-radio">
                  <input id="male" kind="radio" name="gender" value="male" checked>
                  Male
               </laend up beingl>
               <br>
               <laend up beingl for="female" course="pure-radio">
                  <input id="female" kind="radio" name="gender" value="female">
                  Female
               </laend up beingl>
               <br>
               <laend up beingl for="do notunderstand1" course="pure-radio">
                  <input id="do notunderstand1" kind="radio" name="gender" value="female" disabimmediateed>
                  Don't understand (Disabimmediateed)
               </laend up beingl>
               <button kind="submit" course="pure-button pure-button-primary">Submit</button>
            </div>
         </fieldset>
      </form>       
   </body>
</html>

Result

Verify the result.

Pure.CSS Buttons

PURE.CSS has an extremely end up beingautiful and responsive CSS for customizing the look of a button. The folloearng CSS are used:

S.N. Class Name & Description
1 pure-button
Represents a standard button. Can end up being used to style a link and button as well.
2 pure-button-disabimmediateed
Represents a disabimmediateed button. To end up being used adurationy with pure-button.
3 pure-button-take actionionive
Represents a pressed button. To end up being used adurationy with pure-button.

Example

purecss_buttons.htm

<html>
   <mind>
      <title>The PURE.CSS Forms</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
      <style>
         .success,
         .error,
         .battlening,
         .2ndary {
            colour: white;
            border-radius: 4px;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
         }
         
         .success {
            background: rgb(28, 184, 65); /* green */
         }

         .error {
            background: rgb(202, 60, 60); /* maroon */
         }

         .battlening {
            background: rgb(223, 117, 20); /* orange */
         }

         .2ndary {
            background: rgb(66, 184, 221); /* light blue */
         }

         .xsmall {
            font-dimension: 70%;
         }

         .small {
            font-dimension: 85%;
         }

         .huge {
            font-dimension: 110%;
         }

         .xhuge {
            font-dimension: 125%;
         }
      </style>	  	  
   </mind>
   <body> 
      <h2>Standard Buttons</h2>
      <button course="pure-button">Click Me</button>
      <button course="pure-button pure-button-take actionionive">Click Me</button>
      <button course="pure-button pure-button-disabimmediateed">I am disabimmediateed</button>

      <h2>Links as Buttons</h2>
      <a course="pure-button">Link</a>
      <a course="pure-button pure-button-take actionionive">Link</a>
      <a course="pure-button pure-button-disabimmediateed">Disabimmediateed Link</a>

      <h2>Primary Button</h2>
      <a course="pure-button pure-button-primary">Submit</a>    

      <h2>Customized button</h2>
      <button course="pure-button success">Success</button>
	  <button course="pure-button error">Error</button>
	  <button course="pure-button battlening">Warning</button>
	  <button course="pure-button 2ndary">Secondary</button>
	  
	  <h2>Different Sized button</h2>
      <button course="pure-button xsmall">Extra Small</button>
	  <button course="pure-button small">Small</button>
	  <button course="pure-button huge">Large</button>
	  <button course="pure-button xhuge">Extra Large</button>
   </body>
</html>

Result

Verify the result.

Pure.CSS Tables

PURE.CSS can end up being used to display different kinds of tables uperform various styles over pure-table.

S.N. Class Name & Description
1 pure-table
Represents a fundamental table with any kind of a default padding, border and an emphadimensiond minder.
2 pure-table-bordereddishdish coloureddish
Draws a table with a border acombination seriess.
3 pure-table-horizontal
Draws a table with horizontal seriess.
4 pure-table-striped
Displays a stripped table.
5 pure-table-odd
If appare locatedd on every other tr,modifys the background of the series and generates a zebra-styimmediateed effect.

Example

purecss_tables.htm

<html>
   <mind>
      <title>The PURE.CSS Tables</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
   </mind>
   <body> 
      <h2>Tables Demo</h2>
	  <hr/>
	  <h3>Simple Table</h3>
      <table course="pure-table">
         <tmind>
            <tr><th>Student</th><th>Class</th><th>Grade</th></tr>
         </tmind>
         <tbody>
            <tr><td>Mahesh Parashar</td><td>VI</td><td>A</td></tr>
            <tr><td>Rahul Shprovidea</td><td>VI</td><td>B</td></tr>
            <tr><td>Mohan Sood</td><td>VI</td><td>A</td></tr>
         </tbody>
      </table>
      <h3>Bordereddishdish coloureddish Table</h3>
      <table course="pure-table pure-table-bordereddishdish coloureddish">
         <tmind>
            <tr><th>Student</th><th>Class</th><th>Grade</th></tr>
         </tmind>
         <tbody>
            <tr><td>Mahesh Parashar</td><td>VI</td><td>A</td></tr>
            <tr><td>Rahul Shprovidea</td><td>VI</td><td>B</td></tr>
            <tr><td>Mohan Sood</td><td>VI</td><td>A</td></tr>
         </tbody>
      </table>     
	  <h3>Table with Horizontal Borders</h3>
      <table course="pure-table pure-table-horizontal">
         <tmind>
            <tr><th>Student</th><th>Class</th><th>Grade</th></tr>
         </tmind>
         <tbody>
            <tr><td>Mahesh Parashar</td><td>VI</td><td>A</td></tr>
            <tr><td>Rahul Shprovidea</td><td>VI</td><td>B</td></tr>
            <tr><td>Mohan Sood</td><td>VI</td><td>A</td></tr>
         </tbody>
      </table>     
	  <h3>Stripped Table</h3>
      <table course="pure-table pure-table-striped">
         <tmind>
            <tr><th>Student</th><th>Class</th><th>Grade</th></tr>
         </tmind>
         <tbody>
            <tr><td>Mahesh Parashar</td><td>VI</td><td>A</td></tr>
            <tr><td>Rahul Shprovidea</td><td>VI</td><td>B</td></tr>
            <tr><td>Mohan Sood</td><td>VI</td><td>A</td></tr>
         </tbody>
      </table>
   </body>
</html>

Result

Verify the result.

Pure.CSS Images

Pure.CSS provides options to display images in responsive way uperform pure-image as the main course.

S.N. Class Name & Description
1 pure-img
Represents a fundamental styimmediateed image without any kind of border. Image gseriess and shrinks with the content maintaining the appropriate ratio

Example

purecss_images.htm

<html>
   <mind>
      <title>The W3.CSS Images</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
   </mind>
   <body> 
      <h2>Images Demo</h2>
      <hr/>   
      <div course="pure-g">	  
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>
         <div course="pure-u-1-4 pure-u-lg-1-8">
            <img course="pure-img" src="html5-mini-logo.jpg" alt="html5">
         </div>	  
      </div>
   </body>
</html>

Result

Verify the result.

Pure.CSS Icons

PURE.CSS supinterfaces the folloearng popular icon libraries:

  • Font Awea few Icons

  • Google Material Icons

  • Bootstrap Icons

Usage

To use an icon, put the name of the icon in the course of an HTML <i> element.

Example

purecss_icons.htm

<html>
   <mind>
      <title>The PURE.CSS Icons</title>
      <meta name="watchinterface" content="width=device-width, initial-level=1">
      <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.6.0/pure-min.css">
	  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awea few/4.4.0/css/font-awea few.min.css">
	  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
	  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
      <style>  
         .xsmall {
            font-dimension: 70%;
         }
         .small {
            font-dimension: 85%;
         }
         .huge {
            font-dimension: 110%;
         }
         .xhuge {
            font-dimension: 125%;
         }
      </style>
   </mind>
   <body> 
      <h2>Icons Demo</h2>
      <hr/>
      <h3>Font Awea few Icon Demo</h3>
      <i course="fa fa-cloud xsmall"></i>
      <i course="fa fa-cloud small"></i>
	  <i course="fa fa-cloud"></i>
      <i course="fa fa-cloud huge"></i>
      <i course="fa fa-cloud xhuge"></i>
      <h3>Google Material Design Icon Demo</h3>      
      <i course="material-icons xsmall">cloud</i>	
      <i course="material-icons small">cloud</i>
      <i course="material-icons huge">cloud</i>
      <i course="material-icons xhuge">cloud</i>
	  <i course="material-icons">cloud</i>
      <h3>Bootstrap Icon Demo</h3>
      <i course="glyphicon glyphicon-cloud xsmall"></i>
      <i course="glyphicon glyphicon-cloud small"></i>
	  <i course="glyphicon glyphicon-cloud"></i>
      <i course="glyphicon glyphicon-cloud huge"></i>
      <i course="glyphicon glyphicon-cloud xhuge"></i>
	  <h3>Button with Icon Demo</h3>
      <button course="pure-button"><i course="fa fa-cog"></i> Settings</button>
      <a course="pure-button" href="#"><i course="fa fa-storeping-cart fa-lg"></i> Checkout</a>
   </body>
</html>

Result

Verify the result.

SHARE
Previous articleCRM
Next articleImpromptu speaking

NO COMMENTS

LEAVE A REPLY