Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 31st, 2004, 03:17 AM
Authorized User
 
Join Date: Aug 2004
Location: As, , Belgium.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.



Reply With Quote
  #2 (permalink)  
Old September 1st, 2004, 01:57 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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?
Reply With Quote
  #3 (permalink)  
Old September 2nd, 2004, 02:10 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One possible simple solution
Just add the following in your <body> tag

style="overflow-x:hidden;"

Charul Shukla
Reply With Quote
  #4 (permalink)  
Old September 2nd, 2004, 02:34 AM
Authorized User
 
Join Date: Aug 2004
Location: As, , Belgium.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>

Reply With Quote
  #5 (permalink)  
Old September 2nd, 2004, 02:46 AM
Authorized User
 
Join Date: Aug 2004
Location: As, , Belgium.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Reply With Quote
  #6 (permalink)  
Old September 2nd, 2004, 04:49 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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?
Reply With Quote
  #7 (permalink)  
Old September 3rd, 2004, 02:36 AM
Authorized User
 
Join Date: Aug 2004
Location: As, , Belgium.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>&nbsp;</p>
 <p>&nbsp;</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>&nbsp;</p>
 <p>&nbsp;</p>
 <p>There are, however, too many lines to show in one</p>
 <p>screen.</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>Therefore, the user must scroll downwards.</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>When this happens, the horizontal scrollbar</p>
 <p>automatically appears too. </p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>It is the same with this page, as with all pages.</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>Thx, for your help,</p>
 <p>Ruben.</p>
</body>
</html>

Thx a lot again,
Ruben

Reply With Quote
  #8 (permalink)  
Old September 4th, 2004, 06:34 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #9 (permalink)  
Old September 6th, 2004, 02:14 AM
Authorized User
 
Join Date: Aug 2004
Location: As, , Belgium.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Reply With Quote
  #10 (permalink)  
Old September 6th, 2004, 01:52 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unexplained horizontal scrollbar on every page crmpicco HTML Code Clinic 2 October 8th, 2008 01:50 AM
Horizontal scrollbar in Listbox Hannibal ASP.NET 2.0 Basics 2 November 24th, 2007 05:59 AM
Disabling "Horizontal Scrollbar" in <iframe> mcinar HTML Code Clinic 8 November 5th, 2006 09:03 AM
Using a Horizontal Scrollbar 2 traverse link list conundrum C# 0 January 13th, 2004 04:17 AM



All times are GMT -4. The time now is 05:27 PM.


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