Skip to content

Commit 5980d21

Browse files
committed
CSS:
-Site Layout - Added header selector; added footer properties
1 parent 56071b9 commit 5980d21

2 files changed

Lines changed: 24 additions & 11 deletions

File tree

Wireframe/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<body>
1010
<header>
1111
<h1>Wireframe To Web Code</h1>
12+
1213
<p>
1314
Wireframes, README & Git branches, explained.
1415
</p>
@@ -29,13 +30,11 @@ <h2>Wireframe</h2>
2930

3031
<a href="https://www.figma.com/resource-library/what-is-wireframing/">Read more</a>
3132
</article>
32-
</main>
33-
3433

3534
<article>
3635
<img src="README-File-Example.jpg" alt="Picture of an example README file" />
3736

38-
<h2>README</h2>]
37+
<h2>README</h2>
3938

4039
<p>
4140
The purpose of a README file is to provide important information for a project or piece of software.
@@ -64,7 +63,6 @@ <h2>README</h2>]
6463
<a href="https://www.makeareadme.com/">Read more</a>
6564
</article>
6665

67-
6866
<article>
6967
<img src="CYF-Git-Branch-Example.png" alt="Picture of CYF Example Git Branch Diagram" />
7068

@@ -99,8 +97,13 @@ <h2>Git Branches</h2>
9997
Read more
10098
</a>
10199
</article>
100+
</main>
101+
</body>
102102

103103
<footer>
104+
<p>
105+
Footers usually contain content links and information about the site overall
106+
</p>
104107
</footer>
105108
</body>
106109
</html>

Wireframe/style.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ body {
3131
color: var(--ink);
3232
font: var(--font);
3333
}
34-
a {
34+
a {font-family: Arial;
35+
font-weight: 600;
3536
padding: var(--space);
3637
border: var(--line);
3738
max-width: fit-content;
@@ -40,7 +41,7 @@ img,
4041
svg {
4142
width: 100%;
4243
object-fit: cover;
43-
margin: 10px;
44+
4445
}
4546

4647
/* ====== Text Formatting ===== */
@@ -50,8 +51,6 @@ h1, h2 {
5051
}
5152
p, ul{
5253
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
53-
width: clamp(45ch, 50%, 75ch);
54-
5554
}
5655

5756

@@ -63,10 +62,19 @@ main {
6362
max-width: var(--container);
6463
margin: 0 auto calc(var(--space) * 4) auto;
6564
}
65+
66+
header {
67+
display: flex;
68+
justify-content:center;
69+
align-items: center;
70+
}
71+
6672
footer {
67-
position: fixed;
68-
bottom: 0;
69-
text-align: center;
73+
display: flex;
74+
justify-content: center;
75+
align-items: center;
76+
font-weight: 700;
77+
border-top-style: solid;
7078
}
7179
/* ====== Articles Grid Layout ====
7280
Setting the rules for how articles are placed in the main element.
@@ -92,12 +100,14 @@ article {
92100
border: var(--line);
93101
padding-bottom: var(--space);
94102
text-align: justify;
103+
align-items:center;
95104
display: grid;
96105
grid-template-columns: var(--space) 1fr var(--space);
97106
> * {
98107
grid-column: 2/3;
99108
}
100109
> img {
101110
grid-column: span 3;
111+
102112
}
103113
}

0 commit comments

Comments
 (0)