Skip to content

Commit 9e75111

Browse files
committed
removed section element and incorporated into main element. corrected display of elements to be consistent even with page size change on a laptop
1 parent 0622f5b commit 9e75111

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Wireframe/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ <h2>Title</h2>
2323
</p>
2424
<a href="">Read more</a>
2525
</article>
26-
</main>
27-
<section>
2826
<article>
29-
<img class="section__article--img" src="wireframe.png" alt="">
27+
<img src="wireframe.png" alt="">
3028
<h2>Placeholder</h2>
3129
<p>
3230
Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias rerum hic corporis modi dolor dolore optio quaerat recusandae ipsa. Alias distinctio nulla ex non ea architecto quidem tempore rerum. Sed aut optio explicabo in vel iste deleniti repudiandae nulla illum.
@@ -41,7 +39,7 @@ <h2>Placeholder</h2>
4139
</p>
4240
<a href="">Read more</a>
4341
</article>
44-
</section>
42+
</main>
4543
<footer>
4644
<p>
4745
This is the default, provided code and no changes have been made yet.

Wireframe/style.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,21 @@ https://gridbyexample.com/learn/
7070
*/
7171
main {
7272
display: grid;
73+
grid-template-columns: 1fr 1fr;
74+
margin-left: 10%;
75+
margin-right: 10%;
7376
gap: var(--space);
7477
> *:first-child {
75-
grid-column: span 1;
78+
grid-column: span 2;
7679
}
7780
}
7881

7982
section {
8083
display: grid;
8184
grid-template-columns: auto auto;
8285
grid-gap: 20px;
86+
margin: 0 10%;
87+
margin-bottom: 10%;
8388
}
8489
/* ====== Article Layout ======
8590
Setting the rules for how elements are placed in the article.

0 commit comments

Comments
 (0)