Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to align the caption text to the right in a bootstrap caroussel?

I want to align the caption text of a twitter bootstrap caroussel to the right. How can I do so ?

<div class="carousel-inner">
    <div class="item active">
        <img src="img/img1.png" alt="" class="img-responsive">
        <div class="carousel-caption right-caption">
            This is the text I want to put on the right.
        </div>
     </div>
 </div>
like image 959
SALAMAT Med Ayman Avatar asked Oct 02 '22 10:10

SALAMAT Med Ayman


1 Answers

try to wrap your text with class text-right.

<div class="carousel-inner">
    <div class="item active">
        <img src="img/img1.png" alt="" class="img-responsive">
        <div class="carousel-caption right-caption text-right">
            This is the text I want to put on the right.
        </div>
     </div>
</div>
like image 52
zaq Avatar answered Oct 05 '22 12:10

zaq