« Le langage CSS/Fonds, bordures, marges et espacements » : différence entre les versions

Contenu supprimé Contenu ajouté
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
Ligne 61 :
 
Exemple d'un test d'opacité / transparence à 50 % :
<sourcesyntaxhighlight lang=html>
<div style="background-color: yellow; width: 100%; padding: 5px;">
<div style="background-color: lightblue; opacity: 0.5; position:50px;">Bleu sur jaune.</div>
<div style="background-color: red; opacity: 0.5; position:50px;">Rouge sur jaune.</div>
</div>
</syntaxhighlight>
</source>
donne :
<div style="background-color: yellow; width: 100%; padding: 5px;">
Ligne 201 :
 
Exemple :
<sourcesyntaxhighlight lang=html>
<div style="background-color: lightblue; position: 50px; z-index: 9; margin-bottom:-10px;">Bleu sous rouge</div>
<div style="background-color: red; position: 50px; z-index: 11;">Rouge sur bleu.</div>
</syntaxhighlight>
</source>
donne :
<div style="background-color: lightblue; position: 50px; z-index: 9; margin-bottom:-10px;">Bleu sous rouge</div>