Solved

Horizontal scroll bar appearing in middle of screen

Posted on 2010-09-10
11
526 Views
Last Modified: 2012-05-10
I am building a website and want each page to have the Horizontal/Vertical scroll bars visible.  The main reason for this is so that the menu bar (that is centred on the screen) always appears in the same place.  To do this I have used the Overflow/Scroll properties, which seems to work fine.  However, on one PC the user get the horizontal scroll bar in the middle of their screen (behind the content).  I’ve tested it on about 15 other PCs / Macs and it’s fine – but I still need a fix.

Any ideas?
0
Comment
Question by:Andy Brown
  • 6
  • 4
11 Comments
 
LVL 19

Expert Comment

by:Bardobrave
ID: 33644782
¿Wich browser and version is using the affected PC?

¿Has any other of the normal PCs the same browser and version running?

0
 

Author Comment

by:Andy Brown
ID: 33644802
IE8

I have tried it on other versions ranging from Safari to IE8 (backwards) and also Chrome - all seem ok - except on this one PC.
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 33644847
Well, first we need to know is if it's a browser's problem or a computer's one.

I'm not very sure for your response...

Are other PCs working fine using same browser that affected PC?
Affected PC reproduces the error only in IE8 or in several browsers? Any of these worked fine in other pcs?
0
 

Author Comment

by:Andy Brown
ID: 33644878
Every other machine / browser is fine, so I would guess it is down to the PC - but it's the PC of the bosses wife, so I need to be sure before suggesting anything.  The PC in question works fine - until I add Overflow/Scroll property.
0
 
LVL 19

Accepted Solution

by:
Bardobrave earned 500 total points
ID: 33644930
mmm... kinda weird...

I supose that suggesting a browser change is not an option (bosses wife's tend to be very stuck to their browsers) so we should seek what is producing such a strange behaviour...

Could you please attack a screen capture of how the scroll is rendering on affected pc?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Andy Brown
ID: 33645013
Here you go.
Image1.jpg
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 33645153
Ok, I see... so the scrolls are not from the body of the page, they are from a layer, probably a div that you're using as main container.

This type of behavior on IE usually is due to a floating css option on content, that makes it to "separate" from container. IE thinks that the container is empty and reduces it's size to the minimum where it can fits.

The strange thing here is that it only happens on one of your PCs (and also in IE8, I thought this was corrected in IE7 and beyond). ¿Maybe this PC's IE have activated compatibility mode and it's behaving like an IE6.2?

Try to assign to you main container (the one with the scrolls) the following CSS options:
height:auto;
min-height:100%;

I don't remember the exact solution to this type of problems, but it came from those css attribs.

Let me know if this solves the issue, if not I'll look further into it.
0
 

Author Comment

by:Andy Brown
ID: 33645197
I'll give it a try in a little while - thanks for all of your help.
0
 

Author Comment

by:Andy Brown
ID: 33645854
I've taken a look at the html and the overflow command is only on the body tag (see below).

body {
      overflow: scroll;
}
0
 
LVL 9

Expert Comment

by:Bob Stone
ID: 33653621
Without seeing the rest of the CSS it is hard to tell exactly, but you might try

body {
      overflow: auto;
}
0
 

Author Closing Comment

by:Andy Brown
ID: 33691250
I'm pretty sure it is something on the PC - thanks for all of your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't get the PDF Icon to appear on the webpage 1 21
HTML File in SharePoint 2013 Library 4 47
Why won't this text float to the left 8 26
Split in Javascript 5 30
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now