Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I get rid of these white borders around my carousel?

here’s the issue I added a shadow around my carousel and I just saw that I got that white border around it, how could I get rid of it ?
Here’s a screenshot of the issue : My issue

Here’s the code :

.carousel-text h1{
    font-size: 22px;
    font-weight: bold;
    margin-top: 165px;
    text-align: center;
}
.carousel {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 15px;
    max-width: 55%;
    margin: auto;
}

.carousel-inner {
    border-radius: 20px;
    margin-top: 20px;
}

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

It appears the issue is you have two separate border-radius values. On your image you’re using 15px and on your parent (.carousel) you’re using 20px. Make these changes to solve your problem.

.carousel {
    border-radius: 15px;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading