Welcome to TalkGraphics.com
Results 1 to 4 of 4

Thread: Fake scroll bar

  1. #1
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Fake scroll bar

    This isn't really a Xara question but i thought someone here might know the answer.

    When I was researching one of my problems (maybe about a fortnight ago) I stumbled across a web site that gave a short section of code that you could add to your web pages. The code forced every page to have a scroll bar, even if it didn't need one. The basic idea was to force all your site's pages to have the same width in situations where some needed a scroll bar but others didn't.

    I should have bookmarked the page but I didn't. Does anyone know how to go about achieving this?

  2. #2
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Fake scroll bar

    Setting your page height to 1050pix should do the trick.

    right click >> page options

    Drwyd

  3. #3
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Re: Fake scroll bar

    Thanks for the suggestion but I think that would leave an ugly white gap at the bottom of my page. This was some kind of JavaScript solution. I wish I could find it now....

    [Edit...] I found something that suggests it can be done by adding this to my style sheet:-

    Code:
    html { /* Force vertical scrollbar to prevent page shift "jog" */
    	/* IE */
    	overflow-y: scroll; 
    	/* Moz */
    	height: 100%;
    	margin-bottom: 0.1em;
    }
    Haven't tried it yet though.
    Last edited by johne53; 26 April 2009 at 02:54 PM.

  4. #4
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Fake scroll bar

    I have used the following with success with two of my handcoded sites:-


    Code:
    html {
    	min-height: 100%;
    	margin-bottom: 1px;
    	}
    It seems to work with nearly all browsers. Edit: "XHTML 1.0 Strict"

    Drwyd
    Last edited by Drwyd; 26 April 2009 at 06:23 PM.

 

 

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
  •