Jump to content

How to adjust height of embedded iframe?


Apfelstrudel

Recommended Posts

Posted

Hi,

in our point of view the standard settings of embedded gallery content is not perfect. The pics are being shown in 40x40.

Now we added following lines to have pics in 100x100

.ipsEmbedded .cGallery_albumImage a {
	width: 100px;
	height: 100px;
}
iframe[data-embedContent] {
	min-height: 190px;
}
@media screen and (max-width: 767px) {
	iframe[data-embedContent] {
		min-height: 190px;
	}
}

So far so good. The pics look much better now.

But we still have a problem with the height of the shown iframe. It's to big.

How can we adjust the height setting of this iframe to fit it to the shown content.

Also before the modification the height was not good.

Could be an automated resizing the solution? How can we implement this?

<iframe onload="this.style.height=this.contentDocument.body.scrollHeight +'px';" ......

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...