From d8d751269194012943cfd7ad2a24a2894fe4c23f Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Sun, 10 Aug 2014 21:06:55 +0200 Subject: [PATCH] divers tentatives infructueuses de centrage vertical --- index.html | 51 +++++++++++++++++++++++++-------------------------- style.css | 29 ++++++++++++++--------------- 2 files changed, 39 insertions(+), 41 deletions(-) diff --git a/index.html b/index.html index 5c01d8a..a51ad38 100644 --- a/index.html +++ b/index.html @@ -15,50 +15,49 @@ - + + diff --git a/style.css b/style.css index 25e242c..eaa1f53 100644 --- a/style.css +++ b/style.css @@ -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; }