Skip to content

Commit 99af4ea

Browse files
Use CSS to lay out and style footer so they match a wireframe design
1 parent c3e2b7d commit 99af4ea

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

Wireframe/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>Title</h2>
4848
</article>
4949
</section>
5050
</main>
51-
<footer>
51+
<footer class="footer">
5252
<p>
5353
This is the default, provided code and no changes have been made yet.
5454
</p>

Wireframe/style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,30 @@ p {
113113
text-decoration: none;
114114
padding: 0.5rem 1rem;
115115
}
116+
117+
118+
/* Footer */
119+
120+
.footer {
121+
margin-top: 2rem;
122+
border-style: solid;
123+
border-width: 2px;
124+
border-color: var(--grey-light);
125+
padding-top: 2rem;
126+
padding-bottom: 1rem;
127+
text-align: center;
128+
font-size: 0.85rem;
129+
}
130+
131+
132+
/* Media queries */
133+
134+
@media screen and (min-width: 992px) {
135+
.content {
136+
flex-direction: row;
137+
}
138+
139+
.main {
140+
padding-right: 2rem;
141+
}
142+
}

0 commit comments

Comments
 (0)