LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   <iframe> height and vertical scrollbar (https://www.linuxquestions.org/questions/programming-9/iframe-height-and-vertical-scrollbar-758323/)

esteeven 09-28-2009 04:49 PM

<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

smeezekitty 09-28-2009 08:37 PM

Quote:

Originally Posted by esteeven (Post 3699868)
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?

esteeven 10-04-2009 02:22 AM

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.

smeezekitty 10-04-2009 02:24 AM

your welcome
i hope your luck is much better then mine :)


All times are GMT -5. The time now is 04:02 PM.