How to place the image above the slider in mobile view in bootstrap? Last Updated : 07 Aug, 2019 Comments Improve Suggest changes Like Article Like Report Making a responsive page in which the user has an image placed at the right of the range slider in desktop view. But in the mobile view, the image is overlapping with slider. Use grid columns as Bootstrap intended to solve this issue. Set the range column to pull-right for desktop view and flex-column-reverse to set the image above the slider in mobile view. Add a row and column: javascript <div class="row flex-column-reverse flex-md-row"> <div class="col-xs-12 col-sm-6 pull-right"> <div class="input"> <div class="slidecontainer"> <input type="range" min="0" max="100" value="100" id="rangeid1"> </div> </div> </div> <div class="col-xs-12 col-sm-6"> <div class="output"> <img src="Image.png" class="img-fluid float-right" id="imgid" width="275" height="95" > </div> </div> </div> </div> Example: html <!DOCTYPE html> <html> <head> <title> place the image above the slider in mobile view in bootstrap </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href= "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity= "sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="draft.css"> <script src= "https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity= "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity= "sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"> </script> <script src= "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity= "sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"> </script> </head> <style> body { margin-top: 1rem; margin-left: 2rem; margin-right: 2rem; } .input { margin-top: 3rem; } #rangeid { padding: 0.5rem; } </style> <body> <center> <div class="container"> <h1 style="color:green" class="Hclass"> GeeksforGeeks </h1> <div class="row flex-column-reverse flex-md-row"> <div class="col-xs-12 col-sm-6 pull-right"> <div class="input"> <div class="slidecontainer"> <input type="range" min="0" max="100" value="100" id="rangeid1"> </div> <div class="slidecontainer"> <input type="range" min="0" max="100" value="0" id="rangeid"> </div> <div class="slidecontainer"> <input type="range" min="0" max="100" value="0" id="rangeid"> </div> </div> </div> <div class="col-xs-12 col-sm-6"> <div class="output"> <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20190710123529/GeeksforGeeksLogoHeader1.png" class="img-fluid float-right" id="imgid" width="275" height="95"> </div> </div> </div> </div> </center> </body> <script> var ranger = document.getElementById('rangeid1'); var image = document.getElementById('imgid'); var width = image.width; var height = image.height; ranger.onchange = function() { image.width = width * (ranger.value / 100); image.height = height * (ranger.value / 100); } </script> </html> Output: Desktop view: Mobile view: Comment More infoAdvertise with us Next Article How to place the image above the slider in mobile view in bootstrap? P Pritesh Ranjan 1 Follow Improve Article Tags : Web Technologies Bootstrap Similar Reads How to Display an Image only on Mobile View in Bootstrap? To display an image only on mobile view in Bootstrap, you can utilize Bootstrap's responsive utility classes along with a combination of CSS media queries. So one common requirement is to display an image only on small screen devices while hiding it on larger screen devices. Approach: Using Bootstra 4 min read How to fit the image into modal popup using Bootstrap? Modal plugin allows us to add a dialog popup window that is displayed on top of the current page. Bootstrap provides an easy, yet effective way to incorporate modal into our web pages. Modal can consist of any content along with a header and footer.Images can be fitted in modal popup using Bootstrap 2 min read How to Wrap Text Around Image in Bootstrap ? To wrap text around an image in Bootstrap 5, you can apply the 'float' utility classes along with the 'img-fluid' class for responsive images. This technique involves floating the image to the left or right and creating margins to allow the text to wrap around it. ApproachThe code uses Bootstrap 5 c 3 min read How to Adjust Images with Different Sizes to the Same Size using Bootstrap ? Images are an indispensable part of any website. Many websites, such as e-commerce sites, news sites, etc., display numerous images in the same row and column, and the images need to be displayed as per a standard size for a better user experience. We will look at how to adjust images with different 2 min read How to make a Theme Slider using jQuery Mobile ? jQuery Mobile is a web based technology used to make responsive content that can be accessed on all smartphones, tablets and desktops. In this article, we will be creating a Theme Slider using jQuery Mobile. Approach: Add jQuery Mobile scripts needed for your project. <link rel=âstylesheetâ href= 1 min read How to create a Mini sized Slider using jQuery Mobile ? jQuery Mobile is a web based technology used to make responsive content that can be accessed on all smartphones, tablets and desktops. In this article, we will be creating a Mini sized Slider using jQuery Mobile. Approach: Add jQuery Mobile scripts needed for your project. <link rel=âstylesheetâ 1 min read How to create an image slider works with radio button? A slider is a series of images that appear in sequence. Now, we will see an image slider working with radio buttons using HTML & CSS in which the image slides up, on clicking the radio button.ApproachThe HTML defines a container for an image slider with five radio buttons to control the slides. 3 min read How to display bootstrap carousel with three post in each slide? A Bootstrap Carousel is a slideshow for rotating through a series of contents. It is built with CSS and Javascript. It works with a series of photos, images, texts, etc. It can be used as an image slider for showcasing a huge amount of content within a small space on the web page, as it works on the 5 min read How to create a Fieldcontain, mini sized Slider using jQuery Mobile ? jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be creating a Fieldcontain, mini-sized slider using jQuery Mobile. Approach: Add jQuery Mobile scripts needed for your project. <link re 1 min read Like