From: Mark Otto Date: Mon, 3 Dec 2012 21:01:27 +0000 (-0800) Subject: Improve rendering of carousel example for IE10 X-Git-Tag: v3.0.0~81^2~11^2~1^2~90^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d37d2692309eb65784672665508c51bc8cf019d1;p=thirdparty%2Fbootstrap.git Improve rendering of carousel example for IE10 --- diff --git a/carousel.html b/carousel.html index 42b95dd7e4..b71e746172 100644 --- a/carousel.html +++ b/carousel.html @@ -28,11 +28,17 @@ /* Special class on .container surrounding .navbar, used for positioning it into place. */ .navbar-wrapper { - position: relative; + position: absolute; + top: 0; + left: 0; + right: 0; z-index: 10; margin-top: 20px; margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */ } + .navbar-wrapper .navbar { + + } /* Remove border and change up box shadow for more contrast */ .navbar .navbar-inner { @@ -71,24 +77,26 @@ } .carousel .container { - position: absolute; - right: 0; - bottom: 0; - left: 0; + position: relative; + z-index: 10; } .carousel-control { - background-color: transparent; - border: 0; - font-size: 120px; + height: 80px; margin-top: 0; + font-size: 120px; text-shadow: 0 1px 1px rgba(0,0,0,.4); + background-color: transparent; + border: 0; } .carousel .item { height: 500px; } .carousel img { + position: absolute; + top: 0; + left: 0; min-width: 100%; height: 500px; } @@ -98,7 +106,7 @@ position: static; max-width: 550px; padding: 0 20px; - margin-bottom: 100px; + margin-top: 200px; } .carousel-caption h1, .carousel-caption .lead { @@ -219,7 +227,7 @@ .carousel-caption { width: 65%; padding: 0 70px; - margin-bottom: 40px; + margin-top: 100px; } .carousel-caption h1 { font-size: 30px; @@ -263,43 +271,45 @@ - - +