Created
August 21, 2013 10:28
-
-
Save ffoodd/6292835 to your computer and use it in GitHub Desktop.
Liste à puce horizontale avec centrage verticale et hauteur variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Liste à puce horizontale avec centrage verticale et hauteur variable | |
*/ | |
ul { | |
margin: 0; | |
padding: 0; | |
list-style-type: none; | |
display: table; | |
} | |
ul li { | |
display: table-cell; | |
position: relative; | |
background-color: #0099cc; | |
vertical-align: middle; | |
} | |
ul li a { | |
color: #fff; | |
display: block; | |
padding: 5px 7px; | |
margin-right: 2px; | |
text-decoration: none; | |
width: 95px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<ul> | |
<li><a>Texte 1</a></li> | |
<li><a>Texte 2 Long Sur 2 Lignes</a></li> | |
<li><a>Texte 3</a></li> | |
<li><a>Texte 4</a></li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment