Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Issue - grid #341 #2813

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions modules/grids/grid_341_by_kkomati.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
padding: 20px;
background-color: #ead2d8;
}

.grid-item {
padding: 20px;
}

.text-image-grid {
grid-column: span 1;
margin-top: 40%;
}

.image-grid {
grid-column: span 1;
}

.image-text-grid {
grid-column: span 1;
}

img {
max-width: 100%;
height: auto;
}

.text-image-grid img,
.image-text-grid img {
object-fit: cover;
object-position: center center;
width: 80%;
height: 300px;
}
</style>
</head>
<body>
<div class="grid-item text-image-grid">
<p>Neque viverra justo nec ultrices dui <br>
sapien eget mi. Enim ut sem viverra <br>
aliquet eget sit. Nam at lectus urna duis <br>
convallis convallis tellus id interdum. <br>
Varius quam quisque id diam vel.</p>
<img src="images_and_icons/grid_341_image1.jpeg" alt="Image 1">
</div>

<div class="grid-item image-grid">
<img src="images_and_icons/grid_341_image2.jpeg" alt="Image 2">
</div>

<div class="grid-item image-text-grid">
<img src="images_and_icons/grid_341_image3.jpeg" alt="Image 3">
<p>Tellus in hac habitasse platea. Nisl nisi <br>
scelerisque eu ultrices vitae auctor eu. <br>
Sapien eget mi proin sed libero enim.</p>
</div>
</body>
</html>