-
-
Save parzibyte/6702cba5cf4d8381c56ea75e0f033447 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Cuadrícula de imágenes - By Parzibyte</title> | |
<!-- | |
https://parzibyte.me/blog | |
--> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
.columna { | |
float: left; | |
width: 33%; | |
padding-right: 5px; | |
} | |
.fila::after { | |
content: ""; | |
clear: both; | |
display: table; | |
} | |
img { | |
/* Para que sea responsiva */ | |
width: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="fila"> | |
<div class="columna"> | |
<img src="https://picsum.photos/800/600"> | |
</div> | |
<div class="columna"> | |
<img src="https://picsum.photos/800/600"> | |
</div> | |
<div class="columna"> | |
<img src="https://picsum.photos/800/600"> | |
</div> | |
</div> | |
<div class="fila"> | |
<div class="columna"> | |
<img src="https://picsum.photos/800/600"> | |
</div> | |
<div class="columna"> | |
<img src="https://picsum.photos/800/600"> | |
</div> | |
<div class="columna"> | |
<img src="https://picsum.photos/800/600"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment