Web Design

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentWeb Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old March 4th, 2011, 08:45 PM
Applellial Applellial is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 36 Applellial User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 46 sec
Reputation Power: 7
Auto height iframe

Hi there,

I'm trying to automatically resize the height of an iframe depending on the content of the webpage it displays...
basically i want word press to display within my current web template....
does anyone know of a code that works? i've tried at least 10 different codes and non actyually work...

Thanks for your help

Reply With Quote
  #2  
Old March 5th, 2011, 10:20 AM
_Kenny_Programing_'s Avatar
_Kenny_Programing_ _Kenny_Programing_ is offline
~Moderator~
Click here for more information
 
Join Date: Feb 2006
Location: Ohio
Posts: 640 _Kenny_Programing_ New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 3 Days 2 h 10 m 3 sec
Reputation Power: 0
Send a message via MSN to _Kenny_Programing_ Send a message via Skype to _Kenny_Programing_ Send a message via XFire to _Kenny_Programing_
ok im gonna try to break this down for ya.

Main Page (index.html "has the iframe")
Sub-Index (Content.html)

when you have your iframe in index.html you make it as big as you would like it to fit your template. here is a basic iframe code,

Code:
<TR>

<TD WIDTH="541" HEIGHT="343" BACKGROUND="images/programtemplate_22.gif" VALIGN="bottom">

  <iframe src="index2.html" name="content" frameborder="0" height="343" width="541" ></iframe>       </TD>

</TR>
</TABLE>



When you have the iframe on your index page and set to a size of your choice the iframe will scroll if the content is bigger than the iframe its self. you add the coding to the Content.html file such as the

Code:
<head>
<body>
<center>

Hello You!

</center>
</body>
</head>


And it will showup in the center of the iframe, all the coding you want to showup in the iframe (and make it sizeable) you want to put in the content.html sheet, not the index.html sheet.

i dont think you can actually automaticly adjust the iframe on the index.html page, so this is your best bet, the iframe you can make transparent, borderless, add background to the content.html page and it will look like you dont even have a iframe on the index.html file, and it will still even be fully scrollable, this is the only option i know of using iframes. if you have any more questions just message me in the forums or email me and ill be glad to help with what i can. Thanks.
__________________
Never judge a book by its cover.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentWeb Design > Auto height iframe


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap