Solving CSS Image Position hitting the Text Content on the Small Screen -
i have problem css. did not clue position of image when browser on small screen, image not responsive. have tried position:relative;
, manually set margins didnt solve.
here 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 hadir dalam kemasan 165ml dalam variasi rasa kopi susu dengan harga yang affordable dengan tidak mengorbankan kualitas produk yang dihasilkan. praktis dan menyegarkan untuk dinikmatin.</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 css:
#home-product-slider .img-home-product.ihp-thumb { width: 45%; position: absolute; top: 0;right: 0;}
thanks!
why dont try using @media queries in css file. here link, refer , try implementing (http://www.w3schools.com/cssref/css3_pr_mediaquery.asp)
Comments
Post a Comment