472,347 Members | 2,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,347 software developers and data experts.

iFrame : suppress horizontal scroll bar

RJN
Hi

I'm using an iFrame to enclose another document. The iFrame width is
sufficient to hold the enclosed document. When the enclosed document has
more data and exceeds the height set for iFrame, both the scroll bars ,
horizontal and vertical appear. I want to avoid the horizontal scroll
bar. If I set the scrolling property to "no", then both the scroll bars
don't appear. I tried placing the iFrame tag inside div and setting the
scrolling property for iFrame to "no", even that didn't work.

Any help is appreciated

Regards

rjn

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
1 2777
You can try this CSS. It's IE only, and it doesn't always work
depending on what's being shown in the frame:
iframe {
overflow-x: hidden;
overflow-y: scroll;
}

You can also set the body of the content shown in the frame to 95% or
so:
body {width:95%}

Have a look at this discussion:
http://www.webmasterworld.com/forum21/8756.htm

- Jon
http://weblogs.asp.net/jgalloway

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nishant | last post by:
I have a combo box with a horizontal scroll bar. (Used SetHorizontalExtent) The dropdown with horizontal scroll bar works fine when I have more...
2
by: Boaz Ben-Porat | last post by:
Hi all Is there a way to simulate a click on a scrollbar (horizontal) of a FataGrid ? I need to programmatically scroll the grid to the...
2
by: Tina | last post by:
Am I missing something or does the listbox web control not have a horizontal scroll capability? Thanks, T
4
by: André Nobre | last post by:
hi all... i have a listbox in a webform and i wanna know if there´s way to put horizontal scroll in it. I tried HorizontalScrollbar = True, like...
3
by: Vidds | last post by:
Hi Everyone, How come Server listbox control does not have a Horizontal Scroll Property? If any one has an idea how we add a Horizontal scroll to...
0
by: punithaarumugam | last post by:
i want horizontal scroll bar in an iframe by default.i dont want vertical scroll bar. is there any possibility if so please send me sample coding
1
by: amuven | last post by:
Hi All, I need to put a horizontal scroll bar for 4 cells alone where my first cell in table should not contain any horizontal scroll bar . In...
1
by: newbie009 | last post by:
How can I disable horizontal scroll in textbox for FireFox? Right now 1 textbox has vertical scroll and other textbox has horizontal scroll. It...
0
by: shanteshk | last post by:
Hi I have developed ab application in which I fecing an Issue when I browse in Google chrome i.e The Horizontal scroll bar in not appearing in an...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.