0

I have a html and i have also a carousel with pictures. But on small devices they don't look good. So my question is how can i hide the div if the width is less than 1015px? Here is my div:

<html>
 <body>
  <div id="myCarousel"  class="carousel slide" data-ride="carousel">
 </body>
</html>

I know already that i have to use javascript or css. But it didn't work for me. So can someone tell me which javascript i have to use for this?

Chonchol Mahmud
  • 2,717
  • 7
  • 39
  • 72

1 Answers1

1

Try putting this in your css file:

@media screen and (max-width: 1015px) {
   #myCarousel{
      display: none;
   }
}
AVAVT
  • 7,058
  • 2
  • 21
  • 44