Skip to content

Instantly share code, notes, and snippets.

@gcyrillus
Created April 28, 2013 13:07
Show Gist options
  • Save gcyrillus/5476843 to your computer and use it in GitHub Desktop.
Save gcyrillus/5476843 to your computer and use it in GitHub Desktop.
astuce gc pour justifier toutes les lignes
header{
height:100px;
background-color:#02487B;margin-bottom: 3em;
box-shadow: 1px 1px 8px #000;
text-align:justify;
min-width:800px;
}
/* astuce gc pour justifier toutes les lignes */
header:after {content:'';display:inline-block;width:99%;}
header a , header h1 {padding:0 ;display:inline-block;vertical-align:middle;margin:0 20px;}
<header>
<a href="#" title="Français"><img src="http://folken77.free.fr/img/flag_fr.png" alt="langue FR"/></a>
<h1><img src="http://folken77.free.fr/img/logo2.png" alt="NET YAROZE"/></h1>
<a href="#" title="English"><img src="http://folken77.free.fr/img/flag_en.png" alt="lang EN"/></a>
</header>
La logique voudrait que les drapeaux soit des liens ou des boutons pour passer d'une langue à une autre,
le logo un titre en image avec son texte alternatif.</p>
<p>Coté HTML, il faut aussi essayer de penser accessibilité et bonne pratique,
quant au periodes de test, il faut que le HTML represente au mieux le contenu final,
avec des <a href="http://lorempixel.com">images</a> et des faux textes comme du <a href="http://html-ipsum.com/">lorem ipsum</a></q> par exemple.</p>
// alert('Hello world!');
{"view":"split","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