Skip to content

Instantly share code, notes, and snippets.

@ktzanev
Last active August 29, 2015 14:17
Show Gist options
  • Save ktzanev/4b8a862e42d9f005727c to your computer and use it in GitHub Desktop.
Save ktzanev/4b8a862e42d9f005727c to your computer and use it in GitHub Desktop.
style priorities example
h1 {
color:red;
text-align: center;
}
div.message {
background-color: #fee;
padding: 1em;
}
<style>
h1 {
text-align: left;
}
</style>
<h1 style="text-align: right;">Titre</h1>
<div class="message">
La priorités du <code>text-align</code>
de <code>&lt;h1&gt;</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>&lt;style&gt;</code>)
<li><code>center</code> (défini dans un fichier <code>css</code> externe)
</ol>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment