 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) 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
|
|
|
|

August 31st, 2004, 03:17 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How to get rid of the horizontal scrollbar?
Hi everybody.
I'm working with a menuframe (TOP) and a contentframe.
The contentframe is wide enough so it doesn't need a horizontal scrollbar(in any resolution above 640*480).
Still, if the frame contains a page which needs a vertical scrollbar, the horizontal scrollbar is shown as well.
I have no need of the horizontal scrolbar and to make the page look a bit more userfriendly, I want to get rid of the horizontal scollbar.
Does anybody know how I could only make the horizontal scrollbar dissappear, apart from working with iFrames?
Kind regards,
Ruben.
|
|

September 1st, 2004, 01:57 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
How did you define the frame tag and the scrolling attribute in particular? Did you add scrolling="auto"??
Is it possible that the vertical scrollbar is making the page too wide to fit in the current window? How does the code for the frame look like?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Auf Achse by Franz Ferdinand (Track 5 from the album: Franz Ferdinand) What's This?
|
|

September 2nd, 2004, 02:10 AM
|
|
Friend of Wrox
|
|
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
One possible simple solution
Just add the following in your <body> tag
style="overflow-x:hidden;"
Charul Shukla
|
|

September 2nd, 2004, 02:34 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi all,
thx four your replies.
I'll try 'style="overflow-x:hidden;"'
For now, the code looks like this: (It's the contentrame which is having the problems)
<frameset rows="85,299" cols="*">
<frame src="../Menu/MainMenus/HomeMenu.htm" name="menuFrame" id="menuFrame"
scrolling="no">
<frameset rows="*" cols="135,560">
<frame src="../Menu/DetailMenus/Standard.htm" name="subMenuFrame"
id="subMenuFrame" scrolling="no">
<frame src="../Home/AdafiSoftware.htm" name="contentFrame"
id="contentFrame" scrolling="auto">
</frameset>
</frameset>
|
|

September 2nd, 2004, 02:46 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Even 'style="overflow-x:hidden;"'
in the page that is shown in the frame, doesn't work.
All works fine if the page is loaded in a single browser-window,
but when the page is loaded in a frame, I still get both scrollbars.
Thx for your help and patience,
Ruben.
|
|

September 2nd, 2004, 04:49 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
quote:Originally posted by Imar
How does the code for the frame look like?
|
Actually, I was referring to the source of the page, not to the source of the frameset.
Maybe the page is forcing the browser to become too wide.
Can you post a (minimized) version of your code?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Blood Sugar ************ Magik by Red Hot Chili Peppers (Track 10 from the album: Blood Sugar ************ Magik) What's This?
|
|

September 3rd, 2004, 02:36 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi, thx again for your help.
I made a very short testpage, as all pages have the same problem.
Here it is:
Including the overflow-x:hidden doesn't help.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<p>This is a test page.</p>
<p> </p>
<p> </p>
<p>As you can see, this page doe not contain</p>
<p>textlines that are too wide to display in the</p>
<p>browser.</p>
<p> </p>
<p> </p>
<p>There are, however, too many lines to show in one</p>
<p>screen.</p>
<p> </p>
<p> </p>
<p>Therefore, the user must scroll downwards.</p>
<p> </p>
<p> </p>
<p>When this happens, the horizontal scrollbar</p>
<p>automatically appears too. </p>
<p> </p>
<p> </p>
<p>It is the same with this page, as with all pages.</p>
<p> </p>
<p> </p>
<p>Thx, for your help,</p>
<p>Ruben.</p>
</body>
</html>
Thx a lot again,
Ruben
|
|

September 4th, 2004, 06:34 AM
|
|
Friend of Wrox
|
|
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have tested the code posted by you above in IE 6.0 , Opera 7.54, Mozilla and Firefox browsers on both 800*600 and 1024*768 resolution and there is no horizontal scrollbar appeared on my screen.
Charul Shukla
|
|

September 6th, 2004, 02:14 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, by I show the page in a frameset.
There is a top, left and middle frame.
The pages which aren't supposed to show a horizontal scrollbar, are shown in the middle page.
The top menu serves as a general menu and the left frame contains a detailed menu for the chosen subject in the topmenu.
The middle frame is the content page.
So it has to do with the frames then?
I have put the attribute 'scrolling="auto"' for the middle frame, but this doesn't change anything.
It is not really a mandatory problem, it merely serves to suit the eye. Still, this is a strange problem...
I appreciate all of your help.
Hopefully, we will still be able to solve this problem.
Kind regards,
Ruben.
|
|

September 6th, 2004, 01:52 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
From what I can see, this is a bit weird, and shouldn't happen. I have always been able to control frames and scroll bars with the methods suggested in this thread.
Do you have a page online somewhere that we can see? Maybe upload s stripped version of the page to some test account somewhere?
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|
 |