Pure.CSS Tutorial
Selected Reading
- Pure.CSS - Discussion
- Pure.CSS - Useful Resources
- Pure.CSS - Quick Guide
- Pure.CSS - Icons
- Pure.CSS - Images
- Pure.CSS - Tables
- Pure.CSS - Buttons
- Pure.CSS - Forms
- Pure.CSS - Grids
- Pure.CSS - Responsive Design
- Pure.CSS - Environment Setup
- Pure.CSS - Overview
- Pure.CSS - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Pure.CSS - Images
Pure.CSS - Images
Pure.CSS provides options to display the images in a responsive way using pure-image as the main class.
Sr.No. | Class Name & Description |
---|---|
1 | pure-img Represents a basic styled image without any border. Image grows and shrinks with the content maintaining the correct ratio. |
Example
purecss_images.htm
<html> <head> <title>The W3.CSS Images</title> <meta name = "viewport" content = "width=device-width, initial-scale=1"> <pnk rel = "stylesheet" href = "https://yui.yahooapis.com/pure/0.6.0/pure-min.css"> </head> <body> <h2>Images Demo</h2> <hr/> <span class = "pure-g"> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt="html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt = "html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt="html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt = "html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt = "html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt = "html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt="html5"> </span> <span class = "pure-u-1-4 pure-u-lg-1-8"> <img class = "pure-img" src = "html5-mini-logo.jpg" alt = "html5"> </span> </span> </body> </html>
Result
Verify the result.
Advertisements