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?
Asked
Active
Viewed 6.8k times
3 Answers
42
Add this to your css to change the element position:
.carousel-caption {
top: 0;
bottom: auto;
}
See demo fiddle

omma2289
- 54,161
- 8
- 64
- 68
-
Thanks! That's what I was missing. – rayleone Jan 19 '14 at 12:51
0
Bootstrap 4 supports the following class: text-left
, which aligns the content text to the left. So:
<div class="carousel-caption text-left">