| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Horizontal scrollbar iframe...removing
Hi.
Can some one please help me? Iam fairly new to website design and am in the process of designing my first 'proper' website and have hit a problem. The URL for the site is www.mediajunction.co.uk/uwahome.htm The problem iam having is that i have inserted an iframe in a table, and when viewing on a Mac all looks fine, but when i view the site on a PC, a horixontal scrollbar appears at the bottom of the iframe. I have tried reducing the size of the document the iframe is reading which is set at 425 pixels wide. The iframe is currently set at 100% wide. This has totally confused me and i would really really like some help from you guys. So please help... Cheers. |
|
#2
|
||||
|
||||
|
<iframe name="hello" src="page.htm" frameborder="0" scrolling="no"></iframe>
|
|
#3
|
|||
|
|||
|
Quote:
I have tried that and it does get rid of the horizontal, but also deletes the vertical, which i need to keep. Cheers though. Any other suggestions...anyone??? |
|
#4
|
||||
|
||||
|
Ok, let's say that the page you are using as the source for the iframe is called 'page1'. Take the contents of page1 and make sure it is wrapped by a table that has a width that is less than 100%, say 80%. Now view page1 all by itself. Does it look like it only takes up 80% of the screen? Now view page1 from within the iframe. It should only take up 80% of the horizontal width of the iframe, and the horizontal scrollbar should not appear. I hope it works.
|
|
#5
|
|||
|
|||
|
help
That doesn't work either mate. In theory, it should...but it doesn't. I just don't understand. Thanks for your help though.
I don't suppose you have any other suggestions... |
|
#6
|
||||
|
||||
|
I removed the reference to the DTD, and it the scrollbar went away...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
#7
|
|||
|
|||
|
Quote:
When you say remove the reference to the DTD, do you mean all the above text from the html codeing? If you do, i have done that and it still hasn't worked. What is the DTD anyhow? Iam really appreciating your help though... Last edited by ahighfidelity : February 17th, 2004 at 06:44 AM. Reason: sorting out spacing |
|
#8
|
||||
|
||||
|
In newstext.htm, remove this line at the very top:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> After I removet that line, the scrollbar goes away. The DTD is a document type definition. It tells your page to adhere to certain HTML standards. In this case, your page must adhere to the HTML 4.01 standards. See this page for more info on that. http://www.htmlhelp.com/tools/validator/doctype.html Hope this works for you. |
|
#9
|
|||
|
|||
|
Quote:
You are a legend!!! Thankyou very much mate. I really appreciate that. Cheers. Adam. |
|
#10
|
|||
|
|||
|
I removed the reference to the DTD, and it the scrollbar went away...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> |
|
#11
|
|||
|
|||
|
at least
I had the same problem, but now is fixed!, thanks to everyone, thanks thanks thanks thanks ^_^
|
|
#12
|
|||
|
|||
|
same thing
Hia
I'm having the same problem but none of the above suggestions have worked for me Anyone got any more?Thanks ![]() Sarah |
|
#13
|
|||
|
|||
|
the best thing to remove the horizontal scroller is the make outside scrolling arrows on teh iframe ( example here http://www.dyn-web.com/dhtml/iframes/ and click vertically!) this is a pretty cool iframe. the only thing i would suggest is to make sure your iframe is wide enough to fit the content otherwise there will be a horizontal scroller.
btw, not a good idea to remove the DTD reference if you want to publish the website as it is used by validator websites to validate your (x)html |
|
#14
|
|||
|
|||
|
Hey thanks for that - I'll give it a go
![]() |
|
#15
|
||||
|
||||
|
Actually, The scrollbar can be removed via by adding the follwing to your stylesheet
Code:
#FrameID {
width:insert width here;
height:insert height here;
overflow-x:hidden;
overflow-y:auto;
}
where "#FrameID" is the name of your frame. this will only show the vertical scrollbar when it is necessary and NEVER show the Horizontal Scrollbar. This works in IE and Firefox. Haven't had the chance to test in NS |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Horizontal scrollbar iframe...removing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|