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

@ -1,63 +1,83 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<head>
<meta charset="utf-8">
<title>Titre de la page d'accueil</title>
<title>Titre de la page d'accueil</title>
<meta name="description" content="description de la page d'accueil" >
<meta name="keywords" content="quelques mots clés" >
<meta name="description" content="description de la page d'accueil" >
<meta name="keywords" content="quelques mots clés" >
<!-- <link rel="icon" href="img/favicon.ico" > -->
<link rel="stylesheet" href="style.css" media="screen">
</head>
<!-- <link rel="icon" href="img/favicon.ico" > -->
<link rel="stylesheet" href="style.css" media="screen">
</head>
<body>
<body>
<article id="accueil">
<nav id="accueil">
<article class="entree">
<div class="wraptocenter">
<a href="" title="">entrée 01 mais sur deux lignes ?</a>
</div>
</article>
<ul id="main">
<article class="entree">
<a href="#" title="">entrée 02</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="" title="">entrée 01 mais sur deux lignes ?</a>
</div>
</li>
<article class="entree">
<a href="" title="">entrée 03</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée spécialement alongée volontairement</a>
</div>
</li>
<article class="entree">
<a href="#" title="">entrée 04</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 04</a>
</div>
</li>
<article class="entree">
<a href="" title="">entrée 05</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 05</a>
</div>
</li>
<article class="entree">
<a href="#" title="">entrée 06</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 06</a>
</div>
</li>
<article class="entree">
<a href="#" title="">entrée 07</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 07</a>
</div>
</li>
<article class="entree">
<a href="" title="">entrée 08</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 08</a>
</div>
</li>
<article class="entree">
<a href="#" title="">entrée 09</a>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 09</a>
</div>
</li>
</article>
<li class="entree">
<div class="wraptocenter">
<a href="#" title="">entrée 10</a>
</div>
</li>
</body>
</ul>
</nav>
</body>
</html>

View File

@ -1,40 +1,58 @@
/* La page id-libre.org : l'accueil */
html, body, article, ul, li {
margin: 0px;
padding: 0px;
margin: 0px;
padding: 0px;
}
body {
width: 100%;
width: 100%;
}
#accueil {
max-width: 66%;
margin: 0px auto;
width: 66%;
max-width: 900px;
margin: 1% auto;
font-size: 175%;
-moz-hyphens: auto;
}
#main {
list-style: none outside none;
margin: 0px auto;
padding: 1%;
}
.entree {
display: inline;
width: 8em;
height: 8em;
text-align: center;
background-color: rgba(34, 34, 34, .8);
color: rgba(231, 231, 231, .7);
border-radius: 3px;
margin: 2%;
display: inline-block;
margin: .5%;
}
.wraptocenter {
display: table-cell;
vertical-align: middle;
display: table-cell;
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 {
text-decoration: none;
vertical-align: middle;
text-decoration: none;
vertical-align: middle;
padding: .5em;
color: rgba(231, 231, 231, .7);
}
.wraptocenter a:hover {
}
/* #accueil {
margin: 0px auto;
@ -68,26 +86,26 @@ border-radius: 3px;
}
@media (max-width: 1000px) {
.entree {
width: 25%;
padding-bottom: 25%;
}
.entree {
width: 25%;
padding-bottom: 25%;
}
}
.entree:hover {
text-decoration: none;
color: rgba(231, 231, 231, 1);
background-color: rgba(34, 34, 34, .5);
text-decoration: none;
color: rgba(231, 231, 231, 1);
background-color: rgba(34, 34, 34, .5);
}
.entree a {
display: block;
width: 100%;
height: 100%;
color: rgba(231, 231, 231, .7);
display: block;
width: 100%;
height: 100%;
color: rgba(231, 231, 231, .7);
}
.entree:hover a {
text-decoration: none;
text-decoration: none;
}
*/
*/