Last active
March 13, 2017 12:52
-
-
Save ktzanev/956c3f357071348d92f390825b61b04a to your computer and use it in GitHub Desktop.
E F : sélecteur d'enfant (GistRun)
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
<!doctype html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>E F : sélecteur d'enfant</title> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> | |
<div> Un div qui contient : | |
<p>Un paragraphe qui contient <span>un span</span>.</p> | |
</div> | |
<div> Un div qui contient : | |
<span>Un span.</span> | |
</div> | |
<hr> | |
<span> | |
Un span qui n'est pas dans un div. | |
</span> | |
</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
@import url(https://fonts.googleapis.com/css?family=Amatic+SC); | |
body { | |
font-size: 2em; | |
font-family: "Amatic SC"; | |
} | |
span { | |
background-color: yellow; | |
color: purple; | |
} | |
div span { | |
color: blue; | |
} | |
div > span { | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment