Results 1 to 2 of 2

Thread: no horizontal scroll bar

  1. #1
    Join Date
    Nov 2006
    Posts
    6

    no horizontal scroll bar

    hi, i have a big image for the background so that if they have a big monitor, they would be able to see all of it. but if they have a small monitor the horizontal scroll bar comes up and if i put overflow hidden then i cant scroll vertically. Can any one help me out?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    You can use overflow-x: hidden; overflow-y: scroll (or auto instead of scroll).

    x is the horizontal scrollbar, y is the vertical.

    Play with these options until you get what you want.

    You say if they have a small monitor the horizontal scroll bar comes up but if your image is a background image it should not create a scrollbar on its own; there must be something wide inside a div or table cell to cause a horizontal scrollbar.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. OnLoad Scroll Bar Position or name anchor?
    By Twitch in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 10 Oct 2005, 08:31 AM

Posting Permissions

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