I copied and pasted the Carousel code example from the Bootstrap 4 official website, but I noticed that it is not responsive.
You can try it on this page: https://getbootstrap.com/docs/4.0/examples/carousel/ If you resize or open it on a small cellphone, for example, the text disappears. The image is also not responsive...
What do I need to do to make the image and text responsive?
The HTML code:
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>...
...
...
<p>CSS:</p>
<pre><code> /* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
body {
padding-top: 3rem;
padding-bottom: 3rem;
color: #5a5a5a;
}
...
... continued content