Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af31e35
commit dfedbd5
Showing
7 changed files
with
82 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<link rel="stylesheet" href="main.css"> | ||
</head> | ||
<body> | ||
|
||
<p>lorem</p> | ||
|
||
<p>something</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
p { | ||
color: red; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# LVHA | ||
|
||
a:link | ||
|
||
a:visited | ||
|
||
a:hover | ||
|
||
a:active | ||
|
||
a:focus | ||
|
||
# pseudo-classes | ||
|
||
li:first-child | ||
|
||
li:last-child | ||
|
||
li:nth-child(even) | ||
|
||
li:nth-child(odd) | ||
|
||
li:nth-child(3) | ||
|
||
li:nth-last-child(10) | ||
|
||
li:nth-child(3n+2) | ||
start at 2, go up by 3 from there, eg, 2, 5, 8 ... | ||
|
||
article:only-child | ||
|
||
# pseudo-elements | ||
|
||
p::first-letter | ||
|
||
p::first-line | ||
|
||
# nested selectors | ||
|
||
div p | ||
every p beneath a div | ||
|
||
div > p | ||
only immediate direct children | ||
only p elements that are immediate direct children of a div | ||
|
||
div ~ p | ||
all siblings following | ||
any p that is a sibling following a div | ||
|
||
div + p | ||
immediate sibling following | ||
any single p immediately following a div that is a sibling to the div | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ | |
|
||
<img src="../../000_img/pup.jpg"> | ||
<span>here is another inline element</span> | ||
|
||
</body> | ||
</html> |