Skip to content

Commit fc85007

Browse files
committed
feat: adding dimension
1 parent 14071b0 commit fc85007

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ <h2>The Basic Language of the Web: HTML</h2>
5050
alt="HTML code on a screen"
5151
width="500"
5252
height="200"
53+
class="post-img"
5354
/>
5455
</header>
5556

starter/03-CSS-Fundamentals/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body {
1818
padding-right: 40px; */
1919
padding: 20px 40px;
2020
margin-bottom: 60px;
21+
height: 80px;
2122
}
2223

2324
nav {
@@ -37,6 +38,7 @@ aside {
3738
/* padding-top: 50px;
3839
padding-bottom: 50px; */
3940
padding: 50px 0px;
41+
width: 500px;
4042
}
4143
h1,
4244
h2,
@@ -181,3 +183,9 @@ a:active {
181183
footer p {
182184
color: green;
183185
}
186+
187+
.post-img {
188+
/* * Responsive Size*/
189+
width: 100%;
190+
height: auto;
191+
}

0 commit comments

Comments
 (0)