divers tentatives infructueuses de centrage vertical

master
iGor milhit 2014-08-10 21:06:55 +02:00
parent 169560bc59
commit d8d7512691
2 changed files with 39 additions and 41 deletions

View File

@ -15,50 +15,49 @@
<body>
<nav> <!-- Le contenant de la page, qui est un menu en réalité -->
<article id="accueil">
<article class="entree">
<div class="wraptocenter">
<a href="" title="">entrée 01 mais sur deux lignes ?</a>
</div>
</article>
<ul>
<li class="entree">
<a href="" title="">entrée 01</a>
</li>
<li class="entree">
<article class="entree">
<a href="#" title="">entrée 02</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="" title="">entrée 03</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="#" title="">entrée 04</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="" title="">entrée 05</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="#" title="">entrée 06</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="#" title="">entrée 07</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="" title="">entrée 08</a>
</li>
</article>
<li class="entree">
<article class="entree">
<a href="#" title="">entrée 09</a>
</li>
</article>
</ul>
</nav>
</article>
</body>
</html>

View File

@ -9,31 +9,30 @@ body {
width: 100%;
}
nav {
max-width: 80%;
#accueil {
max-width: 66%;
margin: 0px auto;
}
ul {
list-style: none outside none;
}
li {
width: 23%;
height: 0px;
padding-bottom: 23%;
margin: 1%;
.entree {
display: inline;
width: 8em;
height: 8em;
text-align: center;
background-color: rgba(34, 34, 34, .8);
color: rgba(231, 231, 231, .7);
font-size: 200%;
float: left;
border-radius: 3px;
margin: 2%;
}
a {
padding-top: 40%;
.wraptocenter {
display: table-cell;
vertical-align: middle;
}
.wraptocenter a {
text-decoration: none;
vertical-align: middle;
}