You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: html/lesson3/tutorial.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ In the previous two lessons, we spoke about **H**yper **T**ext **M**arkup **L**a
12
12
13
13
### Today we will be building a styled website from scratch
14
14
15
-
The page we will be building will look similar to this [example page](http://codebar.github.io/tutorials/html/lesson3/example.html"Ada Lovelace")
15
+
The page we will be building will look similar to this [example page](http://codebar.github.io/tutorials/html/lesson3/example.html"Ada Lovelace").
16
16
17
17
We will also be explaining in more detail elements that we mentioned in our previous lesson.
18
18
@@ -198,9 +198,9 @@ header {
198
198
Expand the styling of the header so that it has a border and tweak the height and padding
199
199
200
200
```css
201
-
border-bottom: 1px solid #e7e6e6;
202
-
padding-top: 14px;
203
-
height: 70px;
201
+
border-bottom: 1px solid #e7e6e6;
202
+
padding-top: 14px;
203
+
height: 70px;
204
204
```
205
205
206
206
> Do you remember the border properties description from our previous lesson?
@@ -311,7 +311,7 @@ Add a bottom border, to give the effect of a line, to the individual list items
311
311
312
312
## Pseudo classes
313
313
314
-
A pseudo class is a keyword added to selectors that specifies a special state. Using pseudo classes we can specify different styling for different states of a link
314
+
A pseudo class is a keyword added to selectors that specifies a special state. Using pseudo classes we can specify different styling for different states of a link:
315
315
316
316
```css
317
317
a:link
@@ -323,6 +323,11 @@ a:active
323
323
Order is **very** important. Always use the order described above if you want to apply different styling for all of the states.
324
324
The most commonly used pseudo class for links is `a:hover`. That is what we will use today.
325
325
326
+
We talk about *pseudo* classes, because in contrast to the classes we address by
327
+
putting a dot in front of them, the *pseudo* classes have no actual
328
+
correspondent in the HTML. Instead, they refer to a certain state of the element
329
+
that is not expressed through the markup.
330
+
326
331
## Styling links
327
332
328
333
We only want links that are within the list to be affected. So we will specifically style `.social-mediali a`
@@ -414,9 +419,9 @@ Now that the content is there, we can see that again, we need to tweak the eleme
414
419
Add a bit more space around the main container and set the vertical alignment.
0 commit comments