Last active
March 13, 2017 12:42
-
-
Save ktzanev/8dd10c36992e0291f9b21d8d83a31d6f to your computer and use it in GitHub Desktop.
CSS : Priorités (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>Priorités CSS</title> | |
<link rel="stylesheet" href="main.css"> | |
<style> | |
h1 { | |
text-align: left; | |
} | |
</style> | |
</head> | |
<body> | |
<h1 style="text-align: right;">Titre <h1></h1> | |
<div class="message"> | |
La priorités du <code>text-align</code> de <code><h1></code> sont dans l'ordre: | |
<ol> | |
<li><code>right</code> (défini dans l'élémént lui même) | |
<li><code>left</code> (défini dans un tag <code><style></code>) | |
<li><code>center</code> (défini dans un fichier <code>css</code> externe) | |
</ol> | |
</div> | |
</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
h1 { | |
color: red; | |
text-align: center; | |
} | |
div.message { | |
background-color: #fee; | |
padding: 1em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment