Skip to content

Commit 8aa2975

Browse files
committed
adding dimension
1 parent 49f55e0 commit 8aa2975

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ <h2>The Basic Language of the Web: HTML</h2>
4444
</p>
4545

4646
<img
47+
class="post-image"
4748
src="img/post-img.jpg"
4849
alt="HTML code on a screen"
4950
width="500"

starter/03-CSS-Fundamentals/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ article {
2323
padding-right: 40px; */
2424
padding: 20px 40px;
2525
margin-bottom: 60px;
26+
height: 80px;
2627
}
2728
.post-header {
2829
margin-bottom: 40px;
@@ -32,6 +33,7 @@ aside {
3233
border-top: 5px solid #1098ad;
3334
border-bottom: 5px solid #1098ad;
3435
padding: 50px 0;
36+
width: 500px;
3537
}
3638

3739
h1,
@@ -149,3 +151,7 @@ a:active {
149151
footer p {
150152
color: orange;
151153
}
154+
.post-image {
155+
width: 100%;
156+
height: auto;
157+
}

0 commit comments

Comments
 (0)