Skip to content

Commit 7ca5176

Browse files
张欧文张欧文
张欧文
authored and
张欧文
committed
adding dimensions
1 parent 6e41f31 commit 7ca5176

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
@@ -47,6 +47,7 @@ <h2>The Basic Language of the Web: HTML</h2>
4747
alt="HTML code on a screen"
4848
width="500"
4949
height="200"
50+
class="post-img"
5051
/>
5152
</header>
5253

starter/03-CSS-Fundamentals/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,24 @@ footer p {
9191
background-color: #f7f7f7;
9292
padding: 20px 40px;
9393
margin-bottom: 60px;
94+
height: 80px;
9495
}
9596

9697
.post-header {
9798
margin-bottom: 40px;
9899
}
99100

101+
.post-img {
102+
height: auto;
103+
width: 100%;
104+
}
105+
100106
aside {
101107
background-color: #f7f7f7;
102108
border-top: 5px solid #1098ad;
103109
border-bottom: 5px solid #1098ad;
104110
padding: 50px 0;
111+
width: 500px;
105112
}
106113

107114
/* body {

0 commit comments

Comments
 (0)