How to create a CSS image gallery in 5 minutes! 📷

preview_player
Показать описание
#css #course #tutorial

CSS HTML image gallery tutorial example explained
Рекомендации по теме
Комментарии
Автор

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bro Code</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="gallery">
<a target="_blank" href="images/salad.jpg">
<img src="images/salad.jpg" alt="salad">
</a>
<div
</div>

<div class="gallery">
<a target="_blank" href="images/soup.jpg">
<img src="images/soup.jpg" alt="soup">
</a>
<div
</div>

<div class="gallery">
<a target="_blank" href="images/pizza.jpg">
<img src="images/pizza.jpg" alt="pizza">
</a>
<div
</div>

</body>
</html>

/* style.css */

.gallery{
display: inline-block;
border: 1px solid hsl(0, 0%, 60%);
margin: 5px;
width: 200px;
}
.gallery .description{
padding: 10px;
text-align: center;
}
.gallery:hover{
border: 1px solid hsl(0, 0%, 20%);
}
.gallery img{
width: 100%;
height: auto;
}

BroCodez
Автор

so helpful thanks, i always have to go through horrible videos but this is the one i NEEDED

thegreatestyoutubeuser
Автор

how was this video released a few hours before (at this time)
even though his comment was 4 months ago (also at this time)

wasSnapnut