0

When i click on the portfolio link, it will create an iframe lightbox content. I have noticed and inspected the element and apparently the iframe width is not following the css styles, the iframe width was overflow out from div. Below is my test link.

https://wind-dance.com/geopancar/portfolios/

I seriously have no idea why iphone is so different with other devices as those are working fine.

Appreciated everyone helps here.

[EDIT 1] I tried using simulator to check iPhone issue. Here is the screenshot. Notice the width and height size is wider than the device size. I am using Android phone and everything is looking fine.

[SOLUTION]

I have found a solution here. Apparently its a css issue on iframe rendering.

Wai Mun
  • 194
  • 10

2 Answers2

0

I checked out the link and it seems fine to me. Can you mention exactly where you are facing the problem? On which page? And also share the code for it so we can see where the problem is.

EDIT 1: Try adding media query for iPhone X like this:

@media only screen 
and (device-width : 375px) 
and (device-height : 812px) 
and (-webkit-device-pixel-ratio : 3) {

  }

You can set the height and width of the division tag and iframe in here. I haven't tried this, let me know if it works.

Komal R
  • 387
  • 2
  • 16
0

you can use this..

@media only screen 
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) { }