Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2005, 07:35 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default disable horizontal scrollbars in <iframe>

I'm looking for code to disable horizontal scrollbars in <iframe>

My code:

<tr>
<td align="center"><iframe src="../VOLAROCLICKWRAP15txt.txt" width="600" height="600" scrolling="yes" name="content" class="body"></iframe></td>
</tr>

I want to KEEP the vertical scrollbar but not the horizontal one.

I also need the text to be wrapped.

Picco

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old February 16th, 2005, 10:05 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I haven't time to test this but according to my reference IE supports "overflow-x" and "overflow-y" on the iframe element. See at:
http://msdn.microsoft.com/library/de.../overflowx.asp

--

Joe (Microsoft MVP - XML)
 
Old February 27th, 2005, 01:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi,

I was about to post the same question. I read the link and applied it to my code, but somehow it didn't work. Here is my code;

<div id="billing_instruction" width="950px" style="position:absolute; z-index:13; left: 10px; top: 200px;">
    <iframe frameborder="1" name="content" width=950px height=80px marginheight=0 marginwidth=1
         style="overflow-x=hidden; overflow-y=hidden;"
         src="display_billing_instruction.asp?Corp_ID=<%=ln gCorpID%>&Bill_Instruction=<%=server.URLEncode(str BillingInstruction)%>">
    </iframe>
</div>

Thanks for your help,


MCinar

Love all the creatures because of the creator.
 
Old February 28th, 2005, 11:26 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

style="overflow-x=hidden; overflow-y=hidden;"

Should be:
style="overflow-x: hidden; overflow-y: hidden;"

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old February 28th, 2005, 11:33 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

An addendum: If you want to hide overflow for both the x and y axis you should use "overflow: hidden". Support is more common for the one overflow property than for the overflow-x and overflow-y properties. Though Gecko 1.8 now supports overflow-x and overflow-y, (previously IE-only). Point being it is better to stick with features you know to work cross-platform, when possible.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old February 28th, 2005, 11:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Richard,
This time, I used the correct syntax, but it still didn't work. It still shows the "Horizontal Scrollbar" but noth the "Vertical scrollbar".
Here is my code;

<div id="billing_instruction" width="950px" style="position:absolute; z-index:13; left: 10px; top: 200px;">
    <iframe frameborder="1" name="content" width=950px height=80px marginheight=0 marginwidth=1
         style="overflow-x:hidden; overflow-y:auto;"
         src="display_billing_instruction.asp?Corp_ID=<%=ln gCorpID%>&Bill_Instruction=<%=server.URLEncode(str BillingInstruction)%>">
    </iframe>
</div>

Is it maybe related with "scrolling" option in <iframe>? You can either make it "yes" or "no".

Thanks for your help,

Mustafa



MCinar

Love all the creatures because of the creator.





Similar Threads
Thread Thread Starter Forum Replies Last Post
<table> not displaying because of <iframe> crmpicco HTML Code Clinic 16 October 6th, 2007 04:46 PM
Disabling "Horizontal Scrollbar" in <iframe> mcinar HTML Code Clinic 8 November 5th, 2006 09:03 AM
disable <div> content (everything inside it!) crmpicco Javascript How-To 2 April 12th, 2005 09:35 AM
How to use css with <iframe frameBorder="no"> bekim CSS Cascading Style Sheets 1 January 20th, 2005 08:57 AM
<iframe> problem cutesneakers PHP How-To 3 December 29th, 2004 02:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.