Positioning and styling of Twitter Bootstrap Carousel Image Captions

后端 未结 1 1500
星月不相逢
星月不相逢 2020-12-17 22:21

I am trying to change the position of Carousel in the Twitter Bootstrap site. What I am trying is to bring the caption in the middle of the image (Center aligned from top a

相关标签:
1条回答
  • 2020-12-17 23:16

    You could customize the Bootstrap .carousel-caption CSS..

    .carousel-caption {
          max-width: 550px;
          padding: 0 20px;
          margin:0 auto;
          margin-top: 200px;
          text-align:center;
    }
    

    Here is a Bootply to demonstrate

    0 讨论(0)
提交回复
热议问题