Skip to content

Commit 3e10354

Browse files
committed
Changes to page formatting into Wireframe template
1 parent a0943dd commit 3e10354

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

Wireframe/index.html

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,50 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Wireframe Webcode Assignment</title>
77
<link rel="stylesheet" href="style.css" />
8-
</head>
8+
9+
<style>
10+
.container {
11+
display: grid;
12+
grid-template-rows: auto auto; /* Two rows */
13+
grid-template-columns: 1fr 1fr; /* Two columns for second row */
14+
gap: 20px;
15+
max-width: 800px;
16+
margin: 0 auto;
17+
}
18+
19+
.article {
20+
padding: 20px;
21+
background-color: #f4f4f4;
22+
border: 1px solid #ccc;
23+
text-align: center;
24+
}
25+
26+
/* First article spans both columns */
27+
.article-top {
28+
grid-column: span 2;
29+
}
30+
31+
@media (max-width: 768px) {
32+
.container {
33+
grid-template-columns: 1fr; /* Stack on small screens */
34+
}
35+
.article-top {
36+
grid-column: span 1;
37+
}
38+
}
39+
</style>
40+
</head>
41+
<body>
42+
<div class="container">
43+
<article class="article article-top">Top Article (Centered)</article>
44+
<article class="article">Bottom Left Article</article>
45+
<article class="article">Bottom Right Article</article>
46+
</div>
47+
</body>
48+
</head>
949
<body>
1050
<header>
11-
<h1>Wireframe</h1>
51+
<h1>Wireframe to Webcode Assignment</h1>
1252
<p>
1353
This is the initial DRAFT version of this page. <!--First line updated to reflect draft status-->
1454
</p>

0 commit comments

Comments
 (0)