Skip to content

Commit 2af122a

Browse files
author
lintsang
committed
change the html and css to look same to wireframe
1 parent ff7b9d0 commit 2af122a

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

Wireframe/index.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,28 @@ <h2>Title</h2>
2323
</p>
2424
<a href="">Read more</a>
2525
</article>
26+
<article>
27+
<img src="placeholder.svg" alt="" />
28+
<h2>Title</h2>
29+
<p>
30+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
31+
voluptates. Quisquam, voluptates.
32+
</p>
33+
<a href="">Read more</a>
34+
</article>
35+
<article>
36+
<img src="placeholder.svg" alt="" />
37+
<h2>Title</h2>
38+
<p>
39+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
40+
voluptates. Quisquam, voluptates.
41+
</p>
42+
<a href="">Read more</a>
43+
</article>
2644
</main>
2745
<footer>
2846
<p>
29-
This is the default, provided code and no changes have been made yet.
47+
By Lin Tsang
3048
</p>
3149
</footer>
3250
</body>

Wireframe/style.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ As well as useful links to learn more */
2626
}
2727
/* ====== Base Elements ======
2828
General rules for basic HTML elements in any context */
29-
body {
29+
30+
body {
3031
background: var(--paper);
3132
color: var(--ink);
3233
font: var(--font);
34+
justify-items: center;
35+
text-align: center;
36+
display: grid;
37+
3338
}
3439
a {
3540
padding: var(--space);
@@ -41,6 +46,9 @@ svg {
4146
width: 100%;
4247
object-fit: cover;
4348
}
49+
p {
50+
padding: 0 0 30px 0;
51+
}
4452
/* ====== Site Layout ======
4553
Setting the overall rules for page regions
4654
https://www.w3.org/WAI/tutorials/page-structure/regions/
@@ -50,9 +58,9 @@ main {
5058
margin: 0 auto calc(var(--space) * 4) auto;
5159
}
5260
footer {
53-
position: fixed;
54-
bottom: 0;
61+
width: 100%;
5562
text-align: center;
63+
background-color: #ccc;
5664
}
5765
/* ====== Articles Grid Layout ====
5866
Setting the rules for how articles are placed in the main element.

0 commit comments

Comments
 (0)