Skip to content

Commit 528a046

Browse files
Use CSS to lay out and style sections so they match a wireframe design
1 parent 62e6207 commit 528a046

2 files changed

Lines changed: 32 additions & 11 deletions

File tree

Wireframe/index.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@ <h1>Wireframe</h1>
1313
This is the default, provided code and no changes have been made yet.
1414
</p>
1515
</header>
16-
<main>
17-
<article>
18-
<img src="placeholder.svg" alt="" />
19-
<h2>Title</h2>
20-
<p>
21-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
22-
voluptates. Quisquam, voluptates.
23-
</p>
24-
<a href="">Read more</a>
25-
</article>
16+
<main class="main">
17+
<section class="content">
18+
<article>
19+
<img src="placeholder.svg" alt="" />
20+
<h2>Title</h2>
21+
<p>
22+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
23+
voluptates. Quisquam, voluptates.
24+
</p>
25+
<a href="">Read more</a>
26+
</article>
27+
</section>
2628

27-
<section>
29+
<section class="content">
2830
<article>
2931
<img src="placeholder.svg" alt="" />
3032
<h2>Title</h2>

Wireframe/style.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ p {
4141
margin: 0 auto;
4242
}
4343

44+
4445
/* Header */
4546

4647
.header {
@@ -52,3 +53,21 @@ p {
5253
padding-top: 1rem;
5354
gap: 1rem;
5455
}
56+
57+
58+
/* Main */
59+
60+
.main {
61+
display: flex;
62+
flex-direction: column;
63+
gap: 1rem;
64+
}
65+
66+
67+
/* Session */
68+
69+
.content {
70+
display: flex;
71+
flex-direction: row;
72+
gap: 1rem;
73+
}

0 commit comments

Comments
 (0)