File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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}
3439a {
3540 padding : var (--space );
4146 width : 100% ;
4247 object-fit : cover;
4348}
49+ p {
50+ padding : 0 0 30px 0 ;
51+ }
4452/* ====== Site Layout ======
4553Setting the overall rules for page regions
4654https://www.w3.org/WAI/tutorials/page-structure/regions/
5058 margin : 0 auto calc (var (--space ) * 4 ) auto;
5159}
5260footer {
53- position : fixed;
54- bottom : 0 ;
61+ width : 100% ;
5562 text-align : center;
63+ background-color : # ccc ;
5664}
5765/* ====== Articles Grid Layout ====
5866Setting the rules for how articles are placed in the main element.
You can’t perform that action at this time.
0 commit comments