Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to set height and width of an iframe to auto?
Old 07-05-2009, 02:13 PM How to set height and width of an iframe to auto?
Average Talker

Posts: 26
Name: Prithwiraj Bose
Location: Kalyani, West Bengal, India
Trades: 0
I use iframes in some of my web pages. The worst thing I've ever noticed that, when the page inside an iframe becomes longer or wider, horizontal or vertical scroll bars appears around the frame. If I set scroll bars to 'NO' the frame shows a partial display of the source page. I want to know, how can use an iframe which will work seemlessly inside an html page, no scroll bar will appear, however the source page's size is, and the frame will grow/collapse in height/width to fit the source page.
Any CSS tweak or something else?
__________________

Please login or register to view this content. Registration is FREE
in Kolkata
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
| Become a
Please login or register to view this content. Registration is FREE
for Free.
techbongo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2009, 12:17 AM Re: How to set height and width of an iframe to auto?
Banned

Posts: 315
Name: Doug
Trades: 1
The whole point of an IFRAME is to fit content to a specific sized frame.
Not to allow the content to screw with your page layout.

You can and may want to set the IFRAME with percentages so it adjusts to any monitor resolution but you don't want it to be resizing itself arbitrarily.

That's just bad coding form, PERIOD.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 01:34 AM Re: How to set height and width of an iframe to auto?
Average Talker

Posts: 26
Name: Prithwiraj Bose
Location: Kalyani, West Bengal, India
Trades: 0
I guess, you didn't understand my point. I don't want to see scroll bars around the iframe. I don't think using percentage height/width is a solution to this problem.

Any proper solution plz.
__________________

Please login or register to view this content. Registration is FREE
in Kolkata
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
| Become a
Please login or register to view this content. Registration is FREE
for Free.
techbongo is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 01:58 PM Re: How to set height and width of an iframe to auto?
Banned

Posts: 315
Name: Doug
Trades: 1
The only HTML pure way NOT to use scroll and still see the full document is to resize the IFRAME height so the entire document will fit.

If it's a long document, you want it to scroll. Like I said, that's the whole point of Ifram is to fit longer items in less space.

I did however find this page that explains how to use Javascript to do what you
want to do.

http://www.kaali.co.uk/article-Cross...-script-94.htm

Google IFRAME Auto Resize and you will find other suggestions.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2009, 01:50 AM Re: How to set height and width of an iframe to auto?
Average Talker

Posts: 26
Name: Prithwiraj Bose
Location: Kalyani, West Bengal, India
Trades: 0
Thnak you for the link.
__________________

Please login or register to view this content. Registration is FREE
in Kolkata
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
| Become a
Please login or register to view this content. Registration is FREE
for Free.
techbongo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to set height and width of an iframe to auto?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47798 seconds with 12 queries