| View previous topic :: View next topic |
| Author |
Message |
pbenbrown
Joined: 23 Oct 2008 Posts: 4
|
Posted: Thu Oct 23, 2008 7:25 pm can iframe height & width "float" right & |
|
|
|
Hi I am new to html, and composed my main website using verizon.com's Trellix Sitebuilder. I have added new content on another host server because verizon does not support ASP, but my main site contains a lot of proprietary verizon graphics and formatting so I can't move the whole thing to the new host for now.
I am trying to display a page on the new server within a page on the verizon server and make them look like they are all one page. The verizon page has a top banner which expands or "floats" to the right as the browser window is enlarged beyond 800 pixels wide. It also has a left side nav menu which floats down the page, expanding to fit that page's content. I tried using IFRAME to insert the second page in the first, but I want the second page to expand to the right and down as the window expands to accomodate varying content, and the height and width parameters appear to only be for fixed pixel widths. Can these parameters be changed to do what I want, or do I need another html code entirely?
Here is the test page from my site which shows the issue: http://mysite.verizon.net/pbrown1/id39.html |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 25, 2008 12:15 pm |
|
|
|
Play with this code and see if you get it to work:
| Code: |
| <div style="width:600px; height:400px;"><object type="text/html" data="http://Domain_Name.com/" style="width:100%; height:100%; margin:1%;"></object></div> |
Add the required file name if not the default page file. |
|
pbenbrown
Joined: 23 Oct 2008 Posts: 4
|
Posted: Sat Oct 25, 2008 2:36 pm |
|
|
|
| Thanks ron, I played around with that code but couldn't get it to work. It just shows a blank frame with a grayed-out scroll bar on the right. Could this have anything to do with the fact that my primary server where the main site resides does not support ASP, and the target page is on another server that does? If you click on the link I provided in my original post, you'll see the resulting blank box above my previous result using iframe (I just inserted your code above it rather than delete it). |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 25, 2008 2:40 pm |
|
|
|
| You have two frames on that page. Which is the one you want to load or is it both? Maybe the main page whose link you gave? |
|
pbenbrown
Joined: 23 Oct 2008 Posts: 4
|
Posted: Sat Oct 25, 2008 3:04 pm |
|
|
|
| The two frames are there because I added the code you suggested to the existing code instead of replacing it. Both frames should show the same target page, but I wanted the new (upper) one to expand right and down with the browser window. Once that works correctly I will delete the fixed size frame below it. Unfortunately, the first frame doesn't display the target page which you CAN see in the 2nd (lower) frame. Does that make sense? Thank you. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 25, 2008 3:52 pm |
|
|
|
| pbenbrown wrote: |
| ...I played around with that code but couldn't get it to work. It just shows a blank frame with a grayed-out scroll bar on the right. |
Forgot to mention that I see the same page in BOTH frames. Are you wanting it to be flexible as to width? If so, set width using petrcents and set a fixed height for the over all window size. Could add to styling for the code: overflow: auto; and see how that works for you. |
|
pbenbrown
Joined: 23 Oct 2008 Posts: 4
|
Posted: Sat Oct 25, 2008 6:39 pm |
|
|
|
For some reason I only get a blank window showing in my ie7 browser window using the suggested code, but following your other suggestions I modified the iframe parameters using 100% for width and a large, fixed pixel number for height to prevent double scroll bars on longer pages of the inset site. You can see the new test page here: http://mysite.verizon.net/pbrown1/id43.html
It isn't perfect (a lot of white space at bottom of some inset pages due to a fixed height), but it scales with the browser window which was critical. Many thanks. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 25, 2008 7:00 pm |
|
|
|
| You're welcome. I see the new page ok in both Firefox and IE 8 so maybe you're browser settings are set wrong. |
|
|