Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   How can I adjust a div height dynamically ? (http://forum.bytesforall.com/showthread.php?t=11811)

dinoc Dec 20, 2010 04:40 AM

How can I adjust a div height dynamically ?
 
Hi everyone,

Do you guys know how to adjust the height of div dynamically (depending of the content of an iframe) ?
I have an iframe in a div , the iframe changes its content dynamically (expanding the height) and so I want the div container for this, to change its height dynamically too , in order to avoid any scrolling.

What will be the easiest way to do this ? (jquery, java script, ...) ?
Anyone know if there is a plugin for this?

Cheers,
Dinu

dinoc Dec 21, 2010 01:37 AM

Yes you're right , here it is
www.rezair.ro/en

I want to get rid of the space under search engine,
and use no scrolling, for instant if you click
on Segmente Multiple you will understand what I mean

I need something that will expand dinamically based on the
Iframe content

lmilesw Dec 21, 2010 06:05 AM

You need to reduce the height of your iframe to about 270px. I know of no way to make that dynamic.

dinoc Dec 21, 2010 06:24 AM

Well I've tried 270px, but if I click on the calendars or bellow menus they won't be displayed properly and a scroll will appear.

Worst, even with 400 px height, if I choose "Segmente multiple" it will insert a scroll there , and ruins the look .

lmilesw Dec 21, 2010 06:28 AM

I believe there is an attribute you can add to the iframe code to eliminate the scroll bars. Are you using an iframe plugin to add the iframe?

dinoc Dec 21, 2010 06:34 AM

The attribute for the iframe is "scrolling=no" if this what you mean ?
But if I use it, it will truncate the result (the search engine won't be displayed properly).

I'm not using any iframe plugin.

The thing is the content of the iframe is changing in height depeniding of what you choose and the results of the search also.

So that's why I think that I need a dynamic div height and dynamic iframe height in order to expand the content dinamically on the height .

lmilesw Dec 21, 2010 06:59 AM

I have done searches in the past to find a solution for dynamic iframe height and they have been less than successful. I just did another and came up with this article. I am not sure if it will work in your situation and have not tested.

dinoc Dec 21, 2010 07:05 AM

Thanks Larry, I'll give it a try .


All times are GMT -6. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.