From f13430e57f50c3ae377a4af02ad0ccde77145755 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Fri, 18 Nov 2011 18:20:15 +0100 Subject: [PATCH] =?UTF-8?q?[AJ]=20Tests=20sur=20une=20structure=20plus=20s?= =?UTF-8?q?imple=20pour=20les=20=C3=A9l=C3=A9ments.=20Sans=20trop=20de=20r?= =?UTF-8?q?=C3=A9sultats=20concluants.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exemple/element.css | 43 +++++++++++++++++++++++++++++++++++++++++++ exemple/element.html | 11 ++++++----- 2 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 exemple/element.css diff --git a/exemple/element.css b/exemple/element.css new file mode 100644 index 0000000..47825d7 --- /dev/null +++ b/exemple/element.css @@ -0,0 +1,43 @@ +.element { +display: block; +height: 9em; +width: 11em; +margin: 0 5px 10px 5px; +float: left; +border: thin solid #000000; +-moz-border-radius: 15px; +border-radius: 15px; +-webkit-border-radius: 15px; +-moz-box-shadow: 1px 1px 8px #000000; +box-shadow: 1px 1px 8px #000000; +-webkit-box-shadow: 1px 1px 8px #000000; +text-align: center; +} + +.element a { +display: block; +height: 9em; +width: 11em; +margin: 0; +float: left; +-moz-border-radius: 15px; +border-radius: 15px; +-webkit-border-radius: 15px; +overflow: hidden; +text-align: center; +} + +.element img { +background-color: red; +display: block; +position: relative; +width: 3em; +height: 3em; +top: -4em; +left: 4em; +} + +a:hover { +background-color: lightblue; +} + diff --git a/exemple/element.html b/exemple/element.html index 140f491..30bcd06 100644 --- a/exemple/element.html +++ b/exemple/element.html @@ -28,8 +28,9 @@ background-color: red; -
- @@TITRE_ELEMENT@@ @@TITRE_IMAGE@@ -
- - +
+ Microblog + Some img +
+ +