Skip to content

Commit ea2e454

Browse files
committed
Completed Adding Dimensions
1 parent abe1f96 commit ea2e454

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

myWork/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ <h2 class="article-header">The Basic Language of the Web: HTML</h2>
3737
class="article-image"
3838
src="images/post-img.jpg"
3939
alt="HTML code on a screen"
40-
width="500"
4140
/>
4241
</header>
4342

@@ -79,6 +78,7 @@ <h3>What is HTML?</h3>
7978
<p>
8079
You can learn more at the
8180
<a
81+
class="learn-more-at"
8282
href="https://developer.mozilla.org/en-US/docs/Web/HTML"
8383
target="_blank"
8484
>MDN Web Docs</a

myWork/03-CSS-Fundamentals/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ body {
2020
border-top: 5px solid #1098ad;
2121
border-bottom: 5px solid #1098ad;
2222
padding: 10px 0;
23+
width: 500px;
2324
}
2425

2526
h1,
@@ -120,6 +121,8 @@ a:active {
120121

121122
.article-image {
122123
margin-bottom: 5px;
124+
width: 500px;
125+
height: auto;
123126
}
124127

125128
strong {
@@ -133,3 +136,7 @@ strong {
133136
.product-article {
134137
margin-bottom: 20px;
135138
}
139+
140+
.learn-more-at {
141+
padding: 0;
142+
}

0 commit comments

Comments
 (0)