Skip to content

Commit 3bb55e3

Browse files
End section jonasschmedtmann#3
1 parent e8d8936 commit 3bb55e3

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

starter/03-CSS-Fundamentals/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
56
<link href="style.css" rel="stylesheet" />
67
<title>The Basic Language of the Web: HTML</title>
78
</head>
@@ -162,5 +163,8 @@ <h4>Related posts</h4>
162163
</p>
163164
</footer>
164165
</div>
166+
<button>❤️ Like</button>
167+
<!--HTML VALIDATOR: Para validar y encontrar errores en nuestro HTML-->
168+
<!--DIFFCHECKER.COM para comparar códigos-->
165169
</body>
166170
</html>

starter/03-CSS-Fundamentals/style.css

+58-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ body {
2525
padding-right: 40px; */
2626
padding: 20px 40px;
2727
margin-bottom: 60px;
28-
height: 80px;
28+
/* height: 80px; */
2929
}
3030

3131
nav {
3232
font-size: 18px;
33+
text-align: center;
3334
}
3435

3536
.post-header {
@@ -100,6 +101,8 @@ ol {
100101
li {
101102
font-size: 20px;
102103
margin-bottom: 10px;
104+
/* block elements to inline elements
105+
display: inline; */
103106
}
104107

105108
/* footer p {
@@ -212,3 +215,57 @@ footer p {
212215
width: 100%;
213216
height: auto;
214217
}
218+
219+
/* Video 39 - line elements to block elements*/
220+
221+
nav a:link {
222+
/* background-color: orangered;
223+
margin: 20px;
224+
padding: 20px;
225+
display: block; */
226+
margin-right: 30px;
227+
margin-top: 10px;
228+
display: inline-block;
229+
}
230+
231+
nav a:link:last-child {
232+
margin-right: 0;
233+
}
234+
235+
button {
236+
font-size: 22px;
237+
padding: 20px;
238+
cursor: pointer;
239+
position: absolute;
240+
/* top: 50px;
241+
left: 50px; */
242+
bottom: 50px;
243+
right: 50px;
244+
}
245+
246+
h1::first-letter {
247+
font-style: normal;
248+
margin-right: 5px;
249+
}
250+
251+
h3 + p::first-line {
252+
/* color: red; */
253+
}
254+
255+
h2 {
256+
/* background-color: orange; */
257+
position: relative;
258+
}
259+
260+
h2::after {
261+
content: "TOP";
262+
background-color: #ffe70e;
263+
color: black;
264+
font-size: 16px;
265+
font-weight: bold;
266+
display: inline-block;
267+
padding: 5px 10px;
268+
position: absolute;
269+
top: -10px;
270+
right: -25px;
271+
}

0 commit comments

Comments
 (0)