SimplePortal

Customization => Custom Coding => Topic started by: robotron on October 05, 2011, 01:39:43 PM

Title: adjust Iframe on Block
Post by: robotron on October 05, 2011, 01:39:43 PM
well I'm trying to put an iframe from a list of online users, as it grows the list, the iframe grows and it shows the scroll bar. I want to try is that the block to grow as the iframe also increase... Any ideas?

screenshot of my block: http://puu.sh/6kNa
Title: Re: adjust Iframe on Block
Post by: ccbtimewiz on October 05, 2011, 02:03:01 PM
http://www.w3schools.com/cssref/pr_pos_overflow.asp

overflow: visible;
Title: Re: adjust Iframe on Block
Post by: robotron on October 05, 2011, 02:07:49 PM
http://www.w3schools.com/cssref/pr_pos_overflow.asp

overflow: visible;

not work, the block does not grow depending on the iframe
Title: Re: adjust Iframe on Block
Post by: ccbtimewiz on October 05, 2011, 02:10:54 PM
The block is the container element, you should need to feed the height of the iframe into the block, and then set the overflow to visible.

No clue how to do that though, as I don't use deprecated HTML anymore. An easier way to do this is to create an xml or rss file from your custom place, and then use SP's RSS block to parse the content for you (or parse it yourself using a custom PHP block).
SimplePortal 2.3.8 © 2008-2024, SimplePortal