Mise en place correcte du vertical-align

Reste à faire que tous le block soit cliquable
master
iGor milhit 2014-08-11 17:37:50 +02:00
parent faa82e8274
commit 2179bf4b99
2 changed files with 109 additions and 71 deletions

View File

@ -15,47 +15,67 @@
<body> <body>
<article id="accueil"> <nav id="accueil">
<article class="entree"> <ul id="main">
<li class="entree">
<div class="wraptocenter"> <div class="wraptocenter">
<a href="" title="">entrée 01 mais sur deux lignes ?</a> <a href="" title="">entrée 01 mais sur deux lignes ?</a>
</div> </div>
</article> </li>
<article class="entree"> <li class="entree">
<a href="#" title="">entrée 02</a> <div class="wraptocenter">
</article> <a href="#" title="">entrée spécialement alongée volontairement</a>
</div>
</li>
<article class="entree"> <li class="entree">
<a href="" title="">entrée 03</a> <div class="wraptocenter">
</article>
<article class="entree">
<a href="#" title="">entrée 04</a> <a href="#" title="">entrée 04</a>
</article> </div>
</li>
<article class="entree"> <li class="entree">
<a href="" title="">entrée 05</a> <div class="wraptocenter">
</article> <a href="#" title="">entrée 05</a>
</div>
</li>
<article class="entree"> <li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 06</a> <a href="#" title="">entrée 06</a>
</article> </div>
</li>
<article class="entree"> <li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 07</a> <a href="#" title="">entrée 07</a>
</article> </div>
</li>
<article class="entree"> <li class="entree">
<a href="" title="">entrée 08</a> <div class="wraptocenter">
</article> <a href="#" title="">entrée 08</a>
</div>
</li>
<article class="entree"> <li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 09</a> <a href="#" title="">entrée 09</a>
</article> </div>
</li>
</article> <li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 10</a>
</div>
</li>
</ul>
</nav>
</body> </body>

View File

@ -10,31 +10,49 @@ body {
} }
#accueil { #accueil {
max-width: 66%; width: 66%;
margin: 0px auto; max-width: 900px;
margin: 1% auto;
font-size: 175%;
-moz-hyphens: auto;
} }
#main {
list-style: none outside none;
margin: 0px auto;
padding: 1%;
}
.entree { .entree {
display: inline; display: inline-block;
width: 8em; margin: .5%;
height: 8em;
text-align: center;
background-color: rgba(34, 34, 34, .8);
color: rgba(231, 231, 231, .7);
border-radius: 3px;
margin: 2%;
} }
.wraptocenter { .wraptocenter {
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
text-align: center;
background-color: rgba(34, 34, 34, .8);
color: rgba(231, 231, 231, .7);
border-radius: 7px;
width: 7em;
height: 7em;
} }
.wraptocenter a { .wraptocenter a {
text-decoration: none; text-decoration: none;
vertical-align: middle; vertical-align: middle;
padding: .5em;
color: rgba(231, 231, 231, .7);
} }
.wraptocenter a:hover {
}
/* #accueil { /* #accueil {
margin: 0px auto; margin: 0px auto;