I
I
Ilya Saveliev2017-08-23 08:19:50
css
Ilya Saveliev, 2017-08-23 08:19:50

How to remove horizontal scrolling but keep the content visible?

Landos on BS4. Code for one of the sections:

<div class="container-fluid">
  <div class="row">
    <div class="col-md-4">
      ...
    </div>
    <div class="col-md-8">
      <img src="img/final_screen.jpg" alt="" height="600px">
    </div>
  </div>
</div>

The task is to make sure that the image goes beyond the .col-md-8 container, but does not get cut off and there is no horizontal scroll bar.
Exposing for body overflow-x: hidden; turned off the horizontal scroll, but if you press the left-right arrows on the keyboard, the page still scrolls horizontally.
20dda7ca7de140b59c743657eaef29b8.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2017-08-23
@PavelMonro

Add class img-fluid to the image

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question