From 8a632bd6453115694cfdd83e50e7f7ff16f6cddc Mon Sep 17 00:00:00 2001 From: Kevin <kriggen@gmail.com> Date: Thu, 12 Apr 2012 16:32:32 -0700 Subject: [PATCH] Set carousel image to be centered within its .item container. This looks much better if an image happens to have a width less than the carousel container. --- less/carousel.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/less/carousel.less b/less/carousel.less index 8fbd303154..ca23b622be 100644 --- a/less/carousel.less +++ b/less/carousel.less @@ -19,11 +19,13 @@ display: none; position: relative; .transition(.6s ease-in-out left); + text-align: center; } // Account for jankitude on images .item > img { display: block; + margin: 0 auto; line-height: 1; } -- GitLab