Tuesday, February 6, 2024
HomeiOS Developmentcss - Huge dimension picture will not be rendering correctly in WKWebView...

css – Huge dimension picture will not be rendering correctly in WKWebView for iOS


It is getting reduce from the proper facet.

<Type>
img {
      padding-top:20px;
      padding-bottom:20px;
      margin:-50px 0 0 -50px;
      show:block;
      peak:auto;
      width:auto;
      max-width:100%;
    }
</Type>

For fixing this difficulty I’ve added the above CSS code for aligning the actual picture which has larger dimension =[example1:width:1366px, height:650px],[example2:height:2400, width:800], nevertheless it’s having an issue for different photographs that are smaller in dimension. I am getting padding difficulty for these small photographs.

Please look into above code. I need generic code for CSS which is able to match for all sizes of photographs.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments