Skip to content

Commit 7f073d3

Browse files
General structure of the page is defined
1 parent ab8d1e1 commit 7f073d3

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

Wireframe/index.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,31 @@ <h1>Wireframe</h1>
1515
</header>
1616
<main>
1717
<article>
18-
<img src="placeholder.svg" alt="" />
18+
<img src="placeholder.svg" alt="">
1919
<h2>Title</h2>
2020
<p>
2121
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
2222
voluptates. Quisquam, voluptates.
2323
</p>
2424
<a href="">Read more</a>
25+
</article>
26+
27+
<article>
28+
<img src="placeholder.svg" alt="">
29+
<h2>Title</h2>
30+
<p>Description</p>
31+
<a href="">Read more</a>
32+
</article>
33+
34+
<article>
35+
<img src ="placeholder.svg" alt="">
36+
<h2>Title</h2>
37+
<p>Description</p>
38+
<a href="">Read more</a>
2539
</article>
2640
</main>
2741
<footer>
42+
<hr>
2843
<p>
2944
This is the default, provided code and no changes have been made yet.
3045
</p>

Wireframe/style.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ As well as useful links to learn more */
2424
--line: 1px solid;
2525
--container: 1280px;
2626
}
27+
28+
h1,
29+
header p
30+
{
31+
text-align: center;
32+
}
33+
2734
/* ====== Base Elements ======
2835
General rules for basic HTML elements in any context */
2936
body {
@@ -49,11 +56,13 @@ main {
4956
max-width: var(--container);
5057
margin: 0 auto calc(var(--space) * 4) auto;
5158
}
52-
footer {
53-
position: fixed;
54-
bottom: 0;
59+
footer,
60+
footer hr {
61+
margin-top: auto;
5562
text-align: center;
63+
min-width: span 2 ;
5664
}
65+
5766
/* ====== Articles Grid Layout ====
5867
Setting the rules for how articles are placed in the main element.
5968
Inspect this in Devtools and click the "grid" button in the Elements view
@@ -65,7 +74,7 @@ main {
6574
display: grid;
6675
grid-template-columns: 1fr 1fr;
6776
gap: var(--space);
68-
> *:first-child {
77+
> *:nth-child(1) {
6978
grid-column: span 2;
7079
}
7180
}

0 commit comments

Comments
 (0)