Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to wrap text around circular carousel in Bootstrap 4 ?

  • Last Updated : 28 Apr, 2021

Wrapping up a circular carousel is quite hectic compare to wrapping up a circular image or any shape of the image. In this article first, we have to create a carousel to make that circular, then we can use the text to wrap the carousel. 
First, you have to create Bootstrap Carousel. To make that carousel circular you can use CSS border-radius property. Then write down your wrapping text and use the CSS Circle() function on the main div. This will wrap your circular carousel in proper way:
Below example illustrates the above approach: 


<!DOCTYPE html>
<html lang="en">
        How to wrap text around circular
        carousel in Bootstrap 4 ?
    <meta charset="utf-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href=
    <script src=
    <script src=
            color: green;
        .container {
            margin: 15px 10px 0px;
            width: 200px;
            height: 200px;
            float: left;
            shape-outside: circle();
        .carousel {
            border-radius: 50% ;
            overflow: hidden;
        .text {
            font-size: 18px;
            text-align: justify;
            margin: 0px 15px;
            A Computer Science Portal
            for Geeks
        <div class="container">
            <div id="myCarousel"
                class="carousel slide"
                <!-- Indicators -->
                <ol class="carousel-indicators">
                    <li data-target="#myCarousel"
                        data-slide-to="0" class="active"></li>
                    <li data-target="#myCarousel"
                <!-- Wrapper for slides -->
                <div class="carousel-inner">
                    <div class="item active">
                        <img src=
                            alt="" style="width:100%;">
                    <div class="item">
                        <img src=
                            alt="" style="width:100%;">
                <!-- Left and right controls -->
                <a class="left carousel-control"
                        href="#myCarousel" >
                <a class="right carousel-control"
                        href="#myCarousel" >
        <div class="text">
                How many times were you frustrated while
                looking out for a good collection of
                programming/ algorithm/ interview questions?
                What did you expect and what did you get?
                This portal has been created to provide well
                written, well thought and well explained
                solutions for selected questions. An IIT
                Roorkee alumnus and founder of GeeksforGeeks.
                He loves to solve programming problems in
                most efficient ways. Apart from GeeksforGeeks,
                he has worked with DE Shaw and Co. as a
                software developer and JIIT Noida as an
                assistant professor. It is a good platform
                to learn programming. It is an educational
                website. Prepare for the Recruitment drive
                of product based companies like Microsoft,
                Amazon, Adobe etc with a free online
                placement preparation course.



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!