[PATCH] Centered carousel captions with fixed height

Wald Commits scm-commit at wald.intevation.org
Wed Apr 2 14:11:45 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1396440702 -7200
# Node ID 996750c424024dbbd5cf4367153eba180b901d50
# Parent  b217e51c15b7f3221e7d987d5a162e1baf7558c9
Centered carousel captions with fixed height.

diff -r b217e51c15b7 -r 996750c42402 css/style.css
--- a/css/style.css	Wed Apr 02 11:35:33 2014 +0200
+++ b/css/style.css	Wed Apr 02 14:11:42 2014 +0200
@@ -32,13 +32,16 @@
 }
 /* Custom page carousel */
 .carousel-caption {
-    position: relative;
+    position: static;
     margin-top: 10px;
-    margin-bottom: 5px;
-    margin-right: 250px;
+    margin-bottom: 50px;
+    padding-left: 20%;
+    padding-right: 20%;
     text-align: center;
     color: #323;
     text-shadow: none;
+    height: 5.5em;
+    overflow: hidden;
 }
 
 .carousel-img {
@@ -54,7 +57,6 @@
     background-color: #323;
 }
 
-
 /*
  * dive4elements
  * --------------------------------------------------


More information about the Dive4Elements-commits mailing list