Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11691

Big Size Image is not rendering properly in WkWebView for iOS , Its getting cut from the right side

$
0
0
<Style>img {      padding-top:20px;      padding-bottom:20px;      margin:-50px 0 0 -50px;      display:block;      height:auto;      width:auto;      max-width:100%;    }</Style>

For solving this issue I’v adde above css code for the aligning the particular image which are having bigger size =[example1:width:1366px, height:650px],[example2:height:2400, width:800], but its getting problem for another images which are smaller in size.I'm getting padding issue for those small images.

please look into above code, I want generic code for css which will fit for all sizes of images. Thanks in advance.


Viewing all articles
Browse latest Browse all 11691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>