| name | language | licence |
|---|---|---|
| HTML5 : Structure par defaut + commentaires | Other | Other |
| HTML : plus d'infos sur la balise adress | HTML | Other |
| PHP : convertir des retours à la ligne en entité html avec la fonction nl2br() |
PHP | Other |
| HTML : Formulaire de contact + verification inline avec validatious 2.0 | HTML | Other |
| JS/HTML/GOOGLE EARTH API : examples plus commentaires | Other | Other |
| HTML/CSS : une bonne methode pour center verticalement un block | HTML | Other |
| HTML : thead, tfoot, tbody | HTML | Other |
| HTML/CSS : centrer verticalement un texte dans un div | HTML | Other |
< 1 2 3 4 5 6 >
language: HTML
licence: Other
HTML/CSS : centrer verticalement un texte dans un div
options: view full snippet • send to code collector
<html>
<head>
<style type="text/css">
div span{
line-height: 24px;
display: inline-block;
vertical-align: middle; //ici on align le text verticalement au centre, pour un alignement en bottom il faudra modifier le line-height de l'element vcenter de manière à ce qu'il soit plus ou moins le double d'une line-height actuel
width: 450px;
}
.vcenter{
margin: 0;
line-height: 200px;
}



library
html (48)