SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist kyllle's Avatar
    Join Date
    Jun 2008
    Posts
    469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    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.

  3. #3
    SitePoint Evangelist kyllle's Avatar
    Join Date
    Jun 2008
    Posts
    469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot Centauri!!! Your advice is much appreciated!

  4. #4
    SitePoint Wizard Blake Tallos's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •