LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2009, 04:49 PM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
<iframe> height and vertical scrollbar


I am trying to use an iframe on a website. The content is too wide and too long for my page so I end up with horizontal and vertical scrollbars on the iframe. I don't want them but scrollbar="off" only removes the scrollbars : some content is then missing and impossible to access ie no scrollbars. I have tried defining the height of the iframe - this works up to a point but if there is a link to a second page within the iframe, the second page has to "conform" to the set iframe height or my footers are out of place.

How can I easily regulate the height (and width) of an iframe and allow for in frame links to show up and be useable?

I hope this makes sense.

Thanks

Last edited by esteeven; 09-28-2009 at 04:50 PM. Reason: typos & clarity
 
Old 09-28-2009, 08:37 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by esteeven View Post
I am trying to use an iframe on a website. The content is too wide and too long for my page so I end up with horizontal and vertical scrollbars on the iframe. I don't want them but scrollbar="off" only removes the scrollbars : some content is then missing and impossible to access ie no scrollbars. I have tried defining the height of the iframe - this works up to a point but if there is a link to a second page within the iframe, the second page has to "conform" to the set iframe height or my footers are out of place.

How can I easily regulate the height (and width) of an iframe and allow for in frame links to show up and be useable?

I hope this makes sense.

Thanks
actually it does not make sense
are you saying make the iframe autoadjust to the page?
 
Old 10-04-2009, 02:22 AM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Hello
The problem was my css for this page. It restricted the width of the iframe. A rewrite of my css solved the problem. I don't know why I didn't test the iframe in a separate html page without css before I thought there really was a problem.
Thanks smeezekityy. Your answer got me thinking.
 
Old 10-04-2009, 02:24 AM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
your welcome
i hope your luck is much better then mine
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iframe issues asassin85 Linux - Newbie 4 08-20-2009 05:24 AM
A virus changed all my index files with iframe, how to remove that iframe line? Farman Linux - Security 10 07-16-2009 08:40 AM
force iframe content to remain in iframe? frieza Programming 1 09-17-2008 06:29 AM
iframe woes ScottReed Programming 0 07-26-2007 11:04 AM
Vertical Height mkacz9 Linux - Newbie 3 10-17-2003 12:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration