0

Here's my code:

      <div class="media">
        <img class="d-flex align-self-center mr-3 hidden-sm-down" src="filler.png" alt="Example 2">
        <div class="media-body">
          <h4>Example 2</h4>
          <p>Other contenthere</p>
        </div>
      </div>

All very simple.

What I am trying to achieve is getting the image to be hidden when the screen media size is 'small' size - however, it doesn't work. Am I missing an obvious thing here?

Thanks

Henry
  • 4,773
  • 6
  • 20
  • 31

1 Answers1

0

You can try this code

<div class="media">
        <img class="d-flex align-self-center mr-3 d-sm-none d-md-block" src="filler.png" alt="Example 2">
        <div class="media-body">
          <h4>Example 2</h4>
          <p>Other contenthere</p>
        </div>
      </div>