application autoindent

master
iGor milhit 2014-08-11 08:46:19 +02:00
parent d8d7512691
commit faa82e8274
2 changed files with 91 additions and 91 deletions

View File

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

View File

@ -1,93 +1,93 @@
/* La page id-libre.org : l'accueil */ /* La page id-libre.org : l'accueil */
html, body, article, ul, li { html, body, article, ul, li {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
body { body {
width: 100%; width: 100%;
} }
#accueil { #accueil {
max-width: 66%; max-width: 66%;
margin: 0px auto; margin: 0px auto;
} }
.entree { .entree {
display: inline; display: inline;
width: 8em; width: 8em;
height: 8em; height: 8em;
text-align: center; text-align: center;
background-color: rgba(34, 34, 34, .8); background-color: rgba(34, 34, 34, .8);
color: rgba(231, 231, 231, .7); color: rgba(231, 231, 231, .7);
border-radius: 3px; border-radius: 3px;
margin: 2%; margin: 2%;
} }
.wraptocenter { .wraptocenter {
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
} }
.wraptocenter a { .wraptocenter a {
text-decoration: none; text-decoration: none;
vertical-align: middle; vertical-align: middle;
} }
/* #accueil { /* #accueil {
margin: 0px auto; margin: 0px auto;
max-width: 80%; max-width: 80%;
} }
a { a {
text-decoration: none; text-decoration: none;
padding-top: 40%; padding-top: 40%;
} }
ul { ul {
list-style: none outside none; list-style: none outside none;
margin: 0px; margin: 0px;
padding: 1%; padding: 1%;
} }
.entree { .entree {
margin: 1%; margin: 1%;
width: 24%; width: 24%;
height: 0px; height: 0px;
padding-bottom: 24%; padding-bottom: 24%;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
background-color: rgba(34, 34, 34, .8); background-color: rgba(34, 34, 34, .8);
color: rgba(231, 231, 231, .7); color: rgba(231, 231, 231, .7);
font-size: 200%; font-size: 200%;
float: left; float: left;
vertical-align: middle; vertical-align: middle;
border-radius: 3px; border-radius: 3px;
} }
@media (max-width: 1000px) { @media (max-width: 1000px) {
.entree { .entree {
width: 25%; width: 25%;
padding-bottom: 25%; padding-bottom: 25%;
} }
} }
.entree:hover { .entree:hover {
text-decoration: none; text-decoration: none;
color: rgba(231, 231, 231, 1); color: rgba(231, 231, 231, 1);
background-color: rgba(34, 34, 34, .5); background-color: rgba(34, 34, 34, .5);
} }
.entree a { .entree a {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: rgba(231, 231, 231, .7); color: rgba(231, 231, 231, .7);
} }
.entree:hover a { .entree:hover a {
text-decoration: none; text-decoration: none;
} }
*/ */