ivana_andreevska

Grid Of Equals

Nov 21st, 2021
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html lang="en">
  2.  
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Vezba</title>
  6.    <link rel="stylesheet" href="jquery_ui.css">
  7.     <script src="jquery.js"></script>
  8.     <script src="jquery-ui.js"></script>
  9.  
  10.  
  11.     <style>
  12.         .cell{
  13.             display: inline-block;
  14.             width: 250px;
  15.             height: 250px;
  16.             border:1px solid black;
  17.             background: lightblue;
  18.             margin-right:15px;
  19.             margin-bottom:15px;
  20.             vertical-align: top;
  21.         }
  22.         span{
  23.             display: none;
  24.         }
  25.     </style>
  26. </head>
  27.  
  28. <body>
  29.  
  30.     <div class="row">
  31.         <div class="cell">
  32.             <h3>Tile 1</h3>
  33.             <span>Some Text</span>
  34.         </div>
  35.  
  36.         <div class="cell">
  37.             <h3>Tile 2</h3>
  38.             <span>Some Text</span>
  39.         </div>
  40.  
  41.         <div class="cell">
  42.             <h3>Tile 3</h3>
  43.             <span>Some Text</span>
  44.         </div>
  45.     </div>
  46.  
  47.     <div class="row">
  48.         <div class="cell">
  49.             <h3>Tile 1</h3>
  50.             <span>Some Text</span>
  51.         </div>
  52.  
  53.         <div class="cell">
  54.             <h3>Tile 2</h3>
  55.             <span>Some Text</span>
  56.         </div>
  57.  
  58.         <div class="cell">
  59.             <h3>Tile 3</h3>
  60.             <span>Some Text</span>
  61.         </div>
  62.     </div>
  63.  
  64.     <div class="row">
  65.         <div class="cell">
  66.             <h3>Tile 1</h3>
  67.             <span>Some Text</span>
  68.         </div>
  69.  
  70.         <div class="cell">
  71.             <h3>Tile 2</h3>
  72.             <span>Some Text</span>
  73.         </div>
  74.  
  75.         <div class="cell">
  76.             <h3>Tile 3</h3>
  77.             <span>Some Text</span>
  78.         </div>
  79.     </div>
  80.  
  81. <script src="main.js"></script>
  82. </body>
  83.  
  84. $(document).ready(function () {
  85.     $(".cell").hover(function (){
  86.     $(this).find("span").show();
  87.     $(this).find("h3").hide();
  88.     },function (){
  89.     $(this).find("span").hide();
  90.     $(this).find("h3").show();
  91.     })
  92. })
  93.  
  94.  
Advertisement
Add Comment
Please, Sign In to add comment