Skip to content

Commit dbc7a9a

Browse files
html code added
1 parent 7958c54 commit dbc7a9a

File tree

11 files changed

+30
-0
lines changed

11 files changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<style>
7+
.grid-container {
8+
display: grid;
9+
grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
10+
gap: 20px; /* Add spacing between grid items */
11+
}
12+
13+
.grid-item {
14+
background-color: #f2f2f2;
15+
padding: 20px;
16+
text-align: center;
17+
}
18+
</style>
19+
</head>
20+
<body>
21+
<div class="grid-container">
22+
<div class="grid-item">1</div>
23+
<div class="grid-item">2</div>
24+
<div class="grid-item">3</div>
25+
<div class="grid-item">4</div>
26+
<div class="grid-item">5</div>
27+
<div class="grid-item">6</div>
28+
</div>
29+
</body>
30+
</html>

css-training/ex09-css-grid-layout/index2.html

Whitespace-only changes.

0 commit comments

Comments
 (0)