Results 1 to 8 of 8

Thread: Layers width and scrollbar

  1. #1

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Layers width and scrollbar

    I'm creating a site and I'm having a problem with the layers I have for the main page and the menu.

    I have these in my CSS file :

    PHP Code:
    #site_top{
        
    margin0;
        
    padding10px 0px;
        
    border-bottom1px solid #cccccc;
        
    width100%;
    }

    #main_page { 
        
    margin-top0px;
        
    margin-left25%;
        
    margin-right0px;
    }

    #menu {
        
    floatleft;
        
    width22%;
        
    background-color#eeeeee;

    It all works fine but in Firefox (and opera), if the page is long and a scrollbar becomes visible, then the percentage I have is different and it makes the site_top layer and the menu layer smaller and the difference is visible when going from one option of the menu to another. In IE that the scrollbar is visible and either enabled or disabled this doesn't happen...

    I'm sure someone has run into this before... Any solution other than the obvious (which I assume would work) to have a fixed (not %) width for the menu?

    Thanks


    Has someone helped you? Then you can Rate their helpful post.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Layers width and scrollbar

    Not sure I can help. But it would help if you could post a link to the page as I can't really visualise what you are describing.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Layers width and scrollbar

    www.freepgs.com/manavo/

    in the admin panel, login with :

    username : admin
    password : admin

    then open any page other than the Show Classrooms.
    After that, if you open Show Classrooms you'll see that the menu width is slightly smaller than the other pages...


    Has someone helped you? Then you can Rate their helpful post.

  4. #4

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Layers width and scrollbar

    How about if I were to get the screen resolution and make all the percentages based on the width of the screen-20 pixels? Then no matter if there is a scrollbar or not there will be a gap on the right?

    Doesn't sound like the best idea though


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Layers width and scrollbar

    I found this : http://forums.mozillazine.org/viewtopic.php?p=2228127& which mentiones the same problem with me. The solution of always making the scrollbar visible solves it and it's good enough for now.

    Although I am curious to see if there are other options as well so I won't resolve it


    Has someone helped you? Then you can Rate their helpful post.

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Layers width and scrollbar

    I still have no idea what your problem was. Prehaps I need a better eye
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Layers width and scrollbar

    You can't see it in the site? In all pages except for the show classrooms one there is a certain width for the menu. The width of the MozillaWindowClass. If there is no scrollbar, the width is 1024. If there is a scrollbar the width is 1005. So 20% of a different width will give you a different width for my menu... By making the scrollbar always visible now the width will always be 1005 so the menu will always be the same width


    Has someone helped you? Then you can Rate their helpful post.

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Layers width and scrollbar

    I know the problem. Use min-width to make sure the menu doesn't shrink too much.

Posting Permissions

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



Click Here to Expand Forum to Full Width