Skip to content

Commit 76314de

Browse files
committed
section-3: Add dimensions to page components.
1 parent 254f319 commit 76314de

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ <h2>The Basic Language of the Web: HTML</h2>
4343
<img
4444
src="img/post-img.jpg"
4545
alt="HTML code on a screen"
46+
class="post-image"
4647
width="500"
4748
height="200"
4849
/>

starter/03-CSS-Fundamentals/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ aside {
7979
border-bottom: 5px solid #1098ad;
8080
border-top: 5px solid #1098ad;
8181
padding: 50px 0;
82+
width: 500px;
8283
}
8384

8485
/* LVHA */
@@ -142,6 +143,7 @@ nav {
142143

143144
.main-header {
144145
background-color: #f7f7f7;
146+
height: 80px;
145147
padding: 20px 40px;
146148
margin-bottom: 60px;
147149
}
@@ -150,6 +152,11 @@ nav {
150152
margin-bottom: 40px;
151153
}
152154

155+
.post-image {
156+
height: auto;
157+
width: 100%;
158+
}
159+
153160
/* Resolving conflicts. */
154161
/* !important, inline, id, class/pseudo-class, element, universal */
155162
/* #copyright {

0 commit comments

Comments
 (0)