We now have a youtube channel. Subscribe!

jQuery Rowgrid.js Plugin

jQuery Rowgrid.js Plugin


Hello dear readers! Welcome back to another edition of our tutorial on jQuery. In this tutorial guide, we are going to be discussing about the jQuery Rowgrid plugin.

Rowgrid.js is a jQuery plugin used for displaying images in a row.

Example

The following below is a simple Rowgrid.js example -

<!DOCTYPE  html  lang = "en">
<html   xmlns =  "https://www.w3.org/1999/xhtml">
     <head>
          <title>Rowgrid Animation Styles</title>

          <script  type = "text/javascript">
               src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js">
          </script>

          <script  type = "text/javascript">
               src = "/jquery/src/rowgrid/jquery.row-grid.js">
          </script>

          <script  type = "text/javascript">
               $( document ).ready( function( )  {
                    $( ".container" ).rowGrid( { itemSelector:  ".item" ,
                         minMargin: 8 ,  maxMargin: 27 ,  firstItemClass:   "first-item" 
                    } );
               } );
          </script>

          <style>
               .container:  before,
               .container:  after {
                    content:  " " ;
                    display:  table;
               }
               .container:  after {
                    clear:  both;
               }
               .item  {
                    float:  left;
                    margin-bottom:  10px; 
               }
               .item  img  {
                    max-width:  100%;
                    max-height:  100%;
                    vertical-align:  bottom; 
               }
               .first-item  {
                    clear:  both;
               }
               .last-row,  .last-row ~   .item  {
                    margin-bottom:  0;
               }
          </style>
     </head>

     <body>
          <div  class = "container">
               <div  class = "item">
                    <img  src = "https://www.webdesigntutorialz.com/images/50-logo.jpg"    
                         width = "200"  height = "200" />  
               </div>

               <div  class = "item">
                    <img  src = "https://www.webdesigntutorialz.com/images/absolute-classes-free.jpg"    
                         width = "200"  height = "200" />  

               </div>

               <div  class = "item">
                    <img  src = "https://www.webdesigntutorialz.com/images/absolute-latest-tech.jpg"    
                         width = "200"  height = "200" />  

               </div>

               <div  class = "item">
                    <img  src = "https://www.webdesigntutorialz.com/images/absolute-classes.jpg"    
                         width = "200"  height = "200" />  

               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/240/200?5"    
                         width = "200"  height = "200" />  

               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/210/200?6"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/260/200?21"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/220/200?22"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/220/200?1"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/180/200?2"    
                         width = "200"  height = "200" />  
               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/250/200?3"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/200/200?4"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/240/200?5"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/210/200?6"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/200/200?7"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/190/200?8"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/260/200?9"    
                         width = "200"  height = "200" />  


               </div>

               <div  class = "item">
                    <img  src = "https://www.lorempixel.com/220/200?10"    
                         width = "200"  height = "200" />  


               </div>
          </div>

     </body>
</html>


Alright guys! This is where we are rounding up for this tutorial post. In our next tutorial guide, we are going to be discussing about the Alertify.js Plugin.

Do feel free to ask your questions where necessary and i will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.

Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.

Thanks for reading and bye for now.

Post a Comment

Hello dear readers! Please kindly try your best to make sure your comments comply with our comment policy guidelines. You can visit our comment policy page to view these guidelines which are clearly stated. Thank you.
© 2023 ‧ WebDesignTutorialz. All rights reserved. Developed by Jago Desain