File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 */
2936body {
@@ -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 ====
5867Setting the rules for how articles are placed in the main element.
5968Inspect this in Devtools and click the "grid" button in the Elements view
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}
You can’t perform that action at this time.
0 commit comments