From 35e83920f9d4e1ff3f262efa707b89a7e01157d5 Mon Sep 17 00:00:00 2001 From: James Aitken Date: Tue, 28 Aug 2012 21:24:33 +0100 Subject: [PATCH] Fix some margins --- assets/css/style.css | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index f2c44ad..9918e09 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -7,7 +7,7 @@ html, body { body { font-size: 16px; - padding: 20px; + padding: 20px 20px 10px 20px; } p { @@ -28,7 +28,7 @@ h1 { .blocks { padding: 0; - margin: 0 auto; + margin: 0 auto 10px auto; } .blocks li, @@ -39,6 +39,7 @@ h1 { overflow: hidden; list-style: none; display: block; + position: relative; -webkit-border-radius: 2px; -moz-border-radius: 2px; @@ -63,7 +64,15 @@ h1 { text-align: center; } -.gallery li.focused img { +.gallery li.unfocused { + width: 110px; + height: 110px; + float: right; + clear: both; +} + + +li img { position: absolute; top: 0; right: 0; @@ -74,13 +83,6 @@ h1 { max-width: 100%; } -.gallery li.unfocused { - width: 110px; - height: 110px; - float: right; - clear: both; -} - /* Fancy Selection Colours