I am having trouble displaying the image and text side by side on mobile devices. It works fine on desktop, but on mobile, the image is appearing above the text. Can someone assist me in fixing this issue?
Below is an example of how it looks on a mobile device:
https://i.sstatic.net/0EBd4.png
Expected Output: I need both the image and text to be displayed on the same line, similar to how it appears on desktop.
.amazon-section{
text-align:center;
background-color: #fff;
display: table;
margin: 0px auto 0px auto;
padding: 0px 38px 5px;
border-radius: 04px;
webkit-box-shadow: 1px 1px 22px 0px rgba(50, 50, 50, 0.25);
-moz-box-shadow: 1px 1px 22px 0px rgba(50, 50, 50, 0.25);
box-shadow: 1px 1px 22px 0px rgba(50, 50, 50, 0.25);
position: relative;
top: 20px;
font-family:"Arcon-Regular";
box-sizing: border-box;
}
.amazon-section img{
width:100px;
padding:10px;
position: relative;
right: 20px;
}
.amazon-content{
display:inline-block;
}
.amazon-content h2{
font-size:18px;
color:#53585F !important;
font-weight: 600;
position: relative;
top: 15px;
}
<div class="amazon-section">
<div class="amazon">
<img src="images/amazon.png">
<div class="amazon-content">
<h2 class="amazon-text">Lorem ipsum dolor tetur<br /> adipiscing elit.</h2>
</div>
</div>
</div>