Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Carousel Caption Top Alignment?

I'm not trying to do anything too fancy here, but instead of the Bootstrap Carousel Captions defaulting to aligning to the bottom of the Carousel, how do I get them to default align to the top?

like image 729
konalion Avatar asked Jan 19 '14 04:01

konalion


2 Answers

Add this to your css to change the element position:

.carousel-caption {
    top: 0;
    bottom: auto;
}

See demo fiddle

like image 58
omma2289 Avatar answered Sep 21 '22 14:09

omma2289


You could also:

.carousel-caption {
   position: absolute;
   top:-40px
}
like image 28
brroshan Avatar answered Sep 17 '22 14:09

brroshan