There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Unwanted scroll bar


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Dariune's Avatar
Member with 58 posts.
 
Join Date: Aug 2005
Experience: Intermediate
23-Mar-2008, 02:42 PM #1
Unwanted scroll bar
Hi all

Im afraid its me again. Just a quick question i hope.

I seem to have an unwanted scroll bar on one of my pages [url="http://www.dragonstouch.co.uk/AtoH.html"]. I had the problem on two of my pages but managed to fix the problem by adjusting the text a little bit.

I am using Scrollverflow; in the css so i can show the pages correctly in firefox but i dont think thats the problem. I was wondering if any of you people who are better versed in the web developing ways than i am can see what the problem is. Because no matter how much i adjust the text the scroll bar is still there. I assume that also means that the div is entirely moved on older browsers.

Thanks very much
Dariune
Big-K's Avatar
Distinguished Member with 6,883 posts.
 
Join Date: Nov 2003
Location: Kansas
Experience: Advanced
23-Mar-2008, 06:24 PM #2
I'm not understanding exactly what you mean, so I assume you're getting a horizontal scroll bar. Glancing at your css file(which, by the way, you include twice), you might try changing overflow to 'hidden' in #outer. Since it has a set width, anything past that width doesnt appear on the screen, but since there is no set height it will increase as needed.
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
23-Mar-2008, 10:12 PM #3
In your css you have
Code:
#outer  {
	width: 854px;
	padding: 0px;/* Centers div in firefox */
	position: relative;
	text-align:center;
	border: 1px solid #b46633;
	background-color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: small;
	overflow:auto;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
}
but the value overflow:auto; does not exist in that definition or use, so IE renders the scroll bars. Remove or comment that out and your bars will be gone.
Dariune's Avatar
Member with 58 posts.
 
Join Date: Aug 2005
Experience: Intermediate
24-Mar-2008, 07:10 AM #4
Thanks for your quick replies Big-K and Sequal7
I apreciate your help.

If i change the overflow then in firefox the Outer Divs background color doesnt show.
After looking into why on google i foundout that i need the overflow set to auto to show its background.
Excuse my ignorance, this is the first website i have built so there is still sooo much to learn.

Now the thing is, i cant find anything which exceeds the divs width. Locally on my machine i even manually ended the lines of text to given a cm of space on the right hand side but still the scrollbar is there.

Am i being stupid? Is there a way to remove the overflow and still have the whole background as black? Or is there another way to remove the scrollbar?
Dariune's Avatar
Member with 58 posts.
 
Join Date: Aug 2005
Experience: Intermediate
24-Mar-2008, 07:16 AM #5
Hi guys

Im sorry to have wasted your time. I have fixed the problem. One paragraph needed a linebreak in it.

However if anyone does have the time, my previous question about the overflow command still stands purely because i would love to know the answer.
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
24-Mar-2008, 12:32 PM #6
If your "page" requires it, change it to hidden then, the bar will disappear and firefox will render the div.

Code:
overflow: hidden;
It is a poorly written css document, the property should not be required. The page should not overflow since it is main body of the document.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:56 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.