HTML Object Size 
Autore: Waseem L.
Visite 1301,
Followers 1,
Condiviso 0
Hi there. On one of my pages, I've got an html object with the following code:
<iframe width="100%" height="100%" allowtransparency="true" scrolling="yes" frameborder="0" src="http://altawheedcentre.blogspot.com/"></iframe>
I'd like to set this object's height to be 100%. In the bottom left I can adjust the pixel height but I hope to set the height in a percentage value so that object will adjust itself to fit the .
I hope the question is clear enough. Help would be appreciated.
Thanks
Postato il

Hello Waseem,
the 100% height and width is based on the space you give in pixel. You need to set the space that the object has to use and then your custom code will use all the available space (100%).
Please feel free to write back if you need more information.
Autore
The object has a variable size, since it's an iframe of a blog and the blog posts differe in height.
Currently, I have set the object at 2000 pixels and I need to insert a scrollbar in the iframe code so that a user may scroll through the content in the object.
Check the website here: www.altawheed.org.za
You'll notice the scrollbar inside the webpage. I'd like to eliminate the need for that scrollbar.
If the solution is to increase the pixels from, say 2000 to 4000, then the problem is that when the content is short in the html object then there will be a huge space till the end of the webpage.
Is it possible to have the html object adjust it's height according to the height of the content in the object since the content will always vary in height.
Thanks
Hello Waseem,
At the moment it is not possible to have this feature in WebSite X5. I would like to suggest that you open an "Idea" Post where you describe to us the feature you would like to see implemented in the future releases of WebSite X5.
Many thanks!