Daily #Vlog with Anik || CSS Image Gallery || CSS Properties

In this video,I explained the CSS Image Gallery. Feel free to comment. For more, please subscribe and press the BELL icon.Please visit my CSS Playlist. Please link, comment, share and subscribe. The code is as follows -

HTML File - 
<html>
  <head> <title> Image Gallery </title>
         <link rel="stylesheet" href="image_gallery.css">
  </head>
 
  <body>
    <div class="imggallery">
  <a href="html.png" target="_blank">
    <img src="html.png" alt="HTML Image" width=150 height=150>
  </a>
<div class="note"> Added a HTML Image </div>
</div>

<div class="imggallery">
  <a href="css.png" target="_blank">
    <img src="css.png" alt="CSS Image" width=150 height=150>
  </a>
<div class="note"> Added a CSS Image </div>
</div>

<div class="imggallery">
  <a href="htmlcss.png" target="_blank">
    <img src="htmlcss.png" alt="HTML Image" width=120 height=100>
  </a>
<div class="note"> Added a HTML and CSS Image </div>
</div>

  </body>
</html>

CSS File - 
div.imggallery {
margin:5px;
border: 1px solid gray;
float: left;
width: 150px;
}

div.imggallery img {
width: 100%;
height: auto;
}

div.note{
padding: 15px;
text-align: center;
}

div.imggallery:hover {
border: 1px solid black;
}


Comments

Popular posts from this blog

HTML - Frameset Tag in html

Interface in TypeScript || Interface along with Arrow Function