SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Apr 2, 2009, 16:34 #1
Preventing page from scrolling horizontally?
Hi all,
I was wondering how I prevent my page from scrolling, Iv noticed the page Iv created has enabled the scrollbar but not sure how to stop this?
My webpage: http://www.glen-lodge.co.uk/testing/...ite/index.html
-
Apr 2, 2009, 16:50 #2
- Join Date
- May 2007
- Location
- Newcastle, Australia
- Posts
- 3,718
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
As the #mainBanner div is 1024px wide, then you will get a horizontal scrollbar on screen sizes less than around 1040px wide. Simply removing the width setting from #mainBanner would allow it to resize with the screen, and setting a min-width of 900px (same as #wrapper) would prevent it getting narrower.
Also noticed you footer content div is too wide as well - padding adds to the width, so the width should be changed to 880px. #footer could also use the 900px min-width setting.
-
Apr 2, 2009, 17:00 #3
Thanks a lot Centauri!!! Your advice is much appreciated!
-
Apr 3, 2009, 14:08 #4
- Join Date
- Jun 2008
- Location
- Cuyahoga Falls, Ohio.
- Posts
- 1,511
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That will be a nice website if you develop it correctly.
Good Work
Blake Tallos - Software Engineer for Sanctuary
Software Studio, Inc. C# - Fanatic!
http://www.sancsoft.com/
Bookmarks