Skip to main content
mc31803971
Inspiring
Aug 23, 2022 12:35 AM UTC
Answered

Move carousel arrows to caption

How can I move Bootstrap Carousel arrows to the caption? 

    This topic is closed to new replies. Start a new post to keep the conversation going.
    mc31803971
    mc31803971Correct answer
    Inspiring
    Aug 23, 2022 9:09 PM UTC

    Depends on image size.  On larger devices, the arrows may disappear from view.

     

    One option is to use very wide carousel images that are 100% width & height.  Or as you say, just use the default pagers without arrows.

     

    Always test on multiple browsers & devices.

    https://www.w3schools.com/bootstrap4/tryit.asp?filename=trybs_carousel

     


    Wide images won't work as they are different sizes and must be uncropped.

    Tentative success report: I removed the word "carousel" from controls and put the controls in a div inside the indicator ol class. Still testing....

    10 replies

    mc31803971
    Inspiring
    Aug 23, 2022 12:40 AM UTC

    ... or at least to above the caption and below the image

     

    Translate
    BenPleysier
    Community Expert
    Community Expert
    Aug 23, 2022 2:15 AM UTC

    Add the following style rules. Adjust the values as needed.

    .carousel-control-prev, .carousel-control-next {
        top: auto;
        bottom: 50px;
    }
    

     

    Translate
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!