I'm facing a CSS issue regarding the positioning of an image on small screens. The image is not responsive and I've tried using position:relative;
and adjusting margins manually, but it hasn't resolved the problem.
Below is my HTML Code:
<div id="home-product-slider" class="home-section" style="display:none;">
<div class="col-sm-8 col-sm-offset-2">
<div class="row mini-product-wrapper">
<div class="col-sm-12">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/home_product_glasku_capuccino.png" alt="" class="img-responsive img-home-product ihp-thumb">
<div class="product-box" style="margin-top:200px">
<div class="product-hero-box text-left">
<h4 style="color:white;">
<br/>GLASKU CAPPUCINO<br/>
</h4>
<div class="product-box-text">
<p>Glasku Cappuccino comes in a 165ml pack with various coffee flavors at an affordable price without compromising on quality. It's practical and refreshing to enjoy.</p>
<a href="/index.php/our-products/glasku/#0" class="small" style="color:white;">Read more >></a>
</div>
</div>
</div>
</div>
</div>
</div>
And here is my CSS:
#home-product-slider .img-home-product.ihp-thumb { width: 45%; position: absolute; top: 0;right: 0;}
Thank you!