| name | language | licence |
|---|---|---|
| JS/GOOGLE MAPS API : control custom + placemark + polyline | Other | Other |
| HTML : thead, tfoot, tbody | HTML | Other |
| Untitled Snippet | Other | Other |
| FIZZBUZZ | Other | Other |
| HTML/CSS : centrer verticalement un texte dans un div | HTML | Other |
| Untitled Snippet | Other | Other |
| Untitled Snippet | Other | Other |
| TYPO3/TYPOSCRIPT: configuration compatibilité tt_news & real_url | Other | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 >
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)