View Full Version : width scroll thingy :-(
MASSEY
7th June 2010, 17:34
Does anyone know why the scroll bar has appeared at the bottom?
http://www.birminghamelectriciansltd.co.uk
Thanks
stugster
7th June 2010, 18:09
'cause the screen is too wide for the display.
You need to make sure your width is less than the monitor/resolution you're viewing on.
If I view a site on a monitor with resolution 800px by 600px, if the website is greater than 800px i'm going to see the horizontal scroll bar.
In reality, the site needs to be less than 800px wide to accomodate for the vertical scroll bar and a few pixels either side for the window itself.
There's a dated thread about it here: http://designsadvice.com/forums/topic/standard-web-dimensions
Have a look at the www.graphicdesignforums.co.uk and see what they have to say about it :)
Faevilangel
7th June 2010, 18:18
You need to expand #wrapper in the css, make it 960px and see if it fixes it.
fisicx
7th June 2010, 18:25
Try using max-width: 960px in your css.
Faevilangel
7th June 2010, 18:27
Try using max-width: 960px in your css.
If he wanted to do that, better to go down the overflow:hidden; route...
delete the line "overflow:auto".
this is sometimes used to clear floats but i can't see why you'd want it on that banner container.
EDIT
actually, you're not closing off your wrapper / banner tag properly actually. check for missing </div>s before you edit the styles.
MASSEY
7th June 2010, 18:59
delete the line "overflow:auto".
this is sometimes used to clear floats but i can't see why you'd want it on that banner container.
EDIT
actually, you're not closing off your wrapper / banner tag properly actually. check for missing </div>s before you edit the styles.
Yeah but if you look the dam scroll is on every page so it must be the style sheet?
Just double checking.
MASSEY
7th June 2010, 19:01
You need to expand #wrapper in the css, make it 960px and see if it fixes it.
Thats the one gareth!,
Its been a long day.
Thanks for the help :)
Yeah but if you look the dam scroll is on every page so it must be the style sheet?
Just double checking.
Your tags aren't closed correctly so you're applying CSS to elements that are behaving differently than you're thinking.
It's like building on quick sand.
MASSEY
7th June 2010, 20:35
Your tags aren't closed correctly so you're applying CSS to elements that are behaving differently than you're thinking.
It's like building on quick sand.
Lol,
i will go through and iron out all my valid errors soon i havent looked in a while.
i know how it bugs all you coders
Fair play, but you misunderstand me.
I'm not criticising your code (although it is terrible), I'm saying that if your tags aren't closed properly and you try to visually style your site like that, when you do close the tags the styles will all be wrong (because if the tags aren't closed properly you're applying styles to the wrong elements) and could very well change the entire way the site looks.
MASSEY
7th June 2010, 20:59
Yes its no problem.
I know what code is wrong from looking at it. I have just been rushing it with cs5 and notepad.
All will be rectified shortly.:)
cool. good on you for getting your hands dirty :)