Scrollbar on Firefox and CSS layout

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Scrollbar on Firefox and CSS layout

    I have a layout issue where I am trying to align my fixed div in the center
    of the browser window. In Firefox if the content of the body is longer than
    the browser window, the scrollbar appears and pushes the content
    horizontally. This in turn gives the other pages, which are not as long, a
    misaligned and off centre appearance.

    I tried this in IExplorer and because the scrollbar is fixed, it works fine.

    Is there a CSS hack or technique out there to avoid this alignment quirk?

    I have both my left and right margins set to auto.

    Thanks,
    Ricardo


    Ricardo Guest

  2. Similar Questions and Discussions

    1. CSS layout problems in Explorer (fine in Firefox andSafari)
      I am working on a CSS site (my first!) here www.benfrain.com It appears fine in Firefox (PC and Mac) and Safari (mac) but when I view it in...
    2. Help with scrollbar
      Hi all, im trying to place scrollbars onto my HTML website. It's already complete and has been used for awhile not but ive decided to add scrollbars...
    3. Table scrollbar
      I really dont know if this is possible but i have a table, and i want to put quite alot of text into it. But the thing is i dont want to make the...
    4. ScrollBar
      hi, I have a problem with using ScrollBar.In my form there is a DataGrid which has a ScrollBar. When I add a new row to my DataSet , this...
    5. Scrollbar - AS
      I have an instructional Flash file which emulates a page from a word processor on some areas. Some of my "pages" are longer than others, depending...
  3. #2

    Default Re: Scrollbar on Firefox and CSS layout

    What I believe you are describing is a visual 'jump' if you move from a
    shorter page to a longer page...... due to the default scrollbar - try using
    the following in your stylesheet

    html { min-height:100%; margin-bottom:1px; }


    --
    Nadia
    Adobe® Community Expert : Dreamweaver
    -------------------------------------------------
    Tutorials |SEO |Templates
    [url]http://www.DreamweaverResources.com[/url]
    -------------------------------------------------
    [url]http://www.perrelink.com.au[/url]
    -------------------------------------------------
    CSS Tutorials for Dreamweaver
    [url]http://www.adobe.com/devnet/dreamweaver/css.html[/url]
    -------------------------------------------------



    "Ricardo" <radicchio2000@hotmail.com> wrote in message
    news:end057$c8o$1@forums.macromedia.com...
    >I have a layout issue where I am trying to align my fixed div in the center
    >of the browser window. In Firefox if the content of the body is longer than
    >the browser window, the scrollbar appears and pushes the content
    >horizontally. This in turn gives the other pages, which are not as long, a
    >misaligned and off centre appearance.
    >
    > I tried this in IExplorer and because the scrollbar is fixed, it works
    > fine.
    >
    > Is there a CSS hack or technique out there to avoid this alignment quirk?
    >
    > I have both my left and right margins set to auto.
    >
    > Thanks,
    > Ricardo
    >

    : Nadia : **AdobeCommunityExpert** Guest

  4. #3

    Default Re: Scrollbar on Firefox and CSS layout

    I am glad you understood my long explanation.
    Yes, this is just what I needed to fix the pages!

    Thank you very much for your help,
    Ricardo

    ": Nadia : **AdobeCommunityExpert**" <nadia@REMOVEdreamweaverresources.com>
    wrote in message news:end2at$eb3$1@forums.macromedia.com...
    > What I believe you are describing is a visual 'jump' if you move from a
    > shorter page to a longer page...... due to the default scrollbar - try
    > using the following in your stylesheet
    >
    > html { min-height:100%; margin-bottom:1px; }
    >
    >
    > --
    > Nadia
    > Adobe® Community Expert : Dreamweaver
    > -------------------------------------------------
    > Tutorials |SEO |Templates
    > [url]http://www.DreamweaverResources.com[/url]
    > -------------------------------------------------
    > [url]http://www.perrelink.com.au[/url]
    > -------------------------------------------------
    > CSS Tutorials for Dreamweaver
    > [url]http://www.adobe.com/devnet/dreamweaver/css.html[/url]
    > -------------------------------------------------
    >
    >
    >
    > "Ricardo" <radicchio2000@hotmail.com> wrote in message
    > news:end057$c8o$1@forums.macromedia.com...
    >>I have a layout issue where I am trying to align my fixed div in the
    >>center of the browser window. In Firefox if the content of the body is
    >>longer than the browser window, the scrollbar appears and pushes the
    >>content horizontally. This in turn gives the other pages, which are not as
    >>long, a misaligned and off centre appearance.
    >>
    >> I tried this in IExplorer and because the scrollbar is fixed, it works
    >> fine.
    >>
    >> Is there a CSS hack or technique out there to avoid this alignment quirk?
    >>
    >> I have both my left and right margins set to auto.
    >>
    >> Thanks,
    >> Ricardo
    >>
    >
    >

    Ricardo Guest

  5. #4

    Default Re: Scrollbar on Firefox and CSS layout

    "Ricardo" <radicchio2000@hotmail.com> wrote in message
    news:endmd6$7jf$1@forums.macromedia.com...
    >I am glad you understood my long explanation.
    > Yes, this is just what I needed to fix the pages!
    >
    > Thank you very much for your help,

    You're welcome :)

    --
    Nadia
    Adobe® Community Expert : Dreamweaver
    -------------------------------------------------
    Tutorials |SEO |Templates
    [url]http://www.DreamweaverResources.com[/url]
    -------------------------------------------------
    [url]http://www.perrelink.com.au[/url]
    -------------------------------------------------
    CSS Tutorials for Dreamweaver
    [url]http://www.adobe.com/devnet/dreamweaver/css.html[/url]
    -------------------------------------------------


    : Nadia : **AdobeCommunityExpert** Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139