Skip to content

Commit fddfcf4

Browse files
committed
Test saving
1 parent 10de6bc commit fddfcf4

File tree

7 files changed

+91
-8
lines changed

7 files changed

+91
-8
lines changed

.DS_Store

6 KB
Binary file not shown.

final/.DS_Store

6 KB
Binary file not shown.

starter/.DS_Store

6 KB
Binary file not shown.

starter/03-CSS-Fundamentals/index.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>The Basic Language of the Web: HTML</title>
6+
<link rel="stylesheet" href="style.css" />
67
</head>
78

89
<body>
@@ -15,7 +16,7 @@ <h5>The Basic Language of the Web: HTML</h5>
1516
<h6>The Basic Language of the Web: HTML</h6>
1617
-->
1718

18-
<header>
19+
<header class="main-header">
1920
<h1>📘 The Code Magazine</h1>
2021

2122
<nav>
@@ -37,7 +38,9 @@ <h2>The Basic Language of the Web: HTML</h2>
3738
width="50"
3839
/>
3940

40-
<p>Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027</p>
41+
<p id="author">
42+
Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027
43+
</p>
4144

4245
<img
4346
src="img/post-img.jpg"
@@ -112,7 +115,7 @@ <h3>Why should you learn HTML?</h3>
112115
<aside>
113116
<h4>Related posts</h4>
114117

115-
<ul>
118+
<ul class="related">
116119
<li>
117120
<img
118121
src="img/related-1.jpg"
@@ -121,12 +124,12 @@ <h4>Related posts</h4>
121124
width="75"
122125
/>
123126
<a href="#">How to Learn Web Development</a>
124-
<p>By Jonas Schmedtmann</p>
127+
<p class="related-author">By Jonas Schmedtmann</p>
125128
</li>
126129
<li>
127130
<img src="img/related-2.jpg" alt="Lightning" width="75" heigth="75" />
128131
<a href="#">The Unknown Powers of CSS</a>
129-
<p>By Jim Dillon</p>
132+
<p class="related-author">By Jim Dillon</p>
130133
</li>
131134
<li>
132135
<img
@@ -136,11 +139,13 @@ <h4>Related posts</h4>
136139
height="75"
137140
/>
138141
<a href="#">Why JavaScript is Awesome</a>
139-
<p>By Matilda</p>
142+
<p class="related-author">By Matilda</p>
140143
</li>
141144
</ul>
142145
</aside>
143146

144-
<footer>Copyright &copy; 2027 by The Code Magazine.</footer>
147+
<footer>
148+
<p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p>
149+
</footer>
145150
</body>
146151
</html>

starter/03-CSS-Fundamentals/style.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
h1,
2+
h2,
3+
h3,
4+
h4,
5+
p,
6+
li {
7+
font-family: sans-serif;
8+
color: #333;
9+
}
10+
11+
h1,
12+
h2,
13+
h3 {
14+
color: hsla(188, 77%, 25%, 0.887);
15+
}
16+
17+
h1 {
18+
font-size: 30px;
19+
text-transform: uppercase;
20+
font-style: italic;
21+
}
22+
23+
h2 {
24+
font-size: 40px;
25+
}
26+
27+
h3 {
28+
font-size: 30px;
29+
}
30+
31+
h4 {
32+
font-size: 20px;
33+
text-transform: uppercase;
34+
text-align: center;
35+
}
36+
37+
p {
38+
font-size: 22px;
39+
line-height: 1.5;
40+
}
41+
42+
li {
43+
font-size: 20px;
44+
}
45+
46+
#author {
47+
font-style: italic;
48+
font-size: 18px;
49+
}
50+
51+
#copyright {
52+
font-style: italic;
53+
font-size: 16px;
54+
}
55+
56+
.related-author {
57+
font-size: 18px;
58+
font-weight: bold;
59+
}
60+
61+
.related {
62+
list-style-type: none;
63+
}
64+
65+
.main-header {
66+
background-color: #f7f7f7;
67+
}

starter/04-CSS-Layouts/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ <h2>The Basic Language of the Web: HTML</h2>
3939
alt="Headshot of Laura Jones"
4040
height="50"
4141
width="50"
42+
class="author-img"
4243
/>
4344

44-
<p id="author">
45+
<p id="author" class="author">
4546
Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027
4647
</p>
4748

starter/04-CSS-Layouts/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,13 @@ footer p {
265265
nav p {
266266
font-size: 18px;
267267
} */
268+
269+
/* FLOATS */
270+
.author-img {
271+
float: left;
272+
}
273+
274+
.author {
275+
float: left;
276+
padding-left: 10px;
277+
}

0 commit comments

Comments
 (0)