Results 1 to 6 of 6

Thread: [RESOLVED] Can not hide the vertical scroll bar!

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    13

    Resolved [RESOLVED] Can not hide the vertical scroll bar!

    I used a master page to create a web base application using vs 2005.
    At ContentPlaceHolder, For each page which in the master page I added
    a panel. I enabled scrollbars in the panel.

    In my case, I don't want to my master form shows any scorllbar.
    Here is my master page code:

    Code:
    <body  style="background:#b0c4de; overflow:hidden;>
    <form id="form1" runat="server" style="overflow:hidden;"> 
        <table style="text-align:left;overflow:hidden;" >
           <tr  align="left">
                <td  style="height:20px;">
                </td>
                <td  >
                </td>
            </tr>
            <tr >
                <td class="xxxxxA" >
                </td>
                <td class="xxxxxA">
                   Report Store            </td>
            </tr>
            <tr align="left">
               <td class="ssiINSTRUCTIONS" valign="top" style="width: 180px; text-             align:left;"  >            
                    <asp:TreeView ID="tvMenu" runat="server" DataSourceID="sms1                 "ImageSet="Arrows" NodeIndent="7" Width="136px"
                  ShowExpandCollapse="False"   NodeStyle-HorizontalPadding="0px" >
                       <LevelStyles>
                           
                        </LevelStyles>       
                     </asp:TreeView>
                     <asp:SiteMapDataSource ID="sms1" runat="server" />
                 </td>
                 <td  valign="top"  >
                    <asp:ContentPlaceHolder ID="cphTarget" runat="server">
                    </asp:ContentPlaceHolder>                        
                 </td>
            </tr>       
        </table>
    </form>
    </body>
    The above code works perfectly in my local develop machine.
    When I move it to server, no matter how hard I tried,
    the master page always show me the vertical scroll bar and
    made the interface is very ugly. (Show two vertical scrollbars.
    one is from my panel, one is from the master page.)

    I don't know how to get rid of the annoying vertical scrollbar in master form.
    Anyone can help?

    Thanks a lot in advance.
    Last edited by gep13; Apr 9th, 2011 at 08:03 AM. Reason: Added Code Tags

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Can not hide the vertical scroll bar!

    Hello ilplvm,

    Welcome to the forums!

    When you are posting code into the forum, can you please remember to surround it in [code][/code] or [HIGHLIGHT=vb][/highlight] tags? It makes it a lot easier to read. I have done this for you in your above post.

    Thanks

    Gary

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Can not hide the vertical scroll bar!

    As to your problem..

    Are you accessing the pages from the same machine, i.e with the same screen resolution? The scroll bars will only appear when they are required, i.e. some content is being clipped.

    Gary

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    13

    Re: Can not hide the vertical scroll bar!

    Thanks, gep13.

    I use the same machine to access the pages.
    But they show me the difference.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    13

    Re: Can not hide the vertical scroll bar!

    Problem solved!

    I added the code "Scorll=no" at body tag. I got the error message in vs 2005 which told me the
    "Attribute 'scroll' is not a valid attribute of element 'body'. I ignored the error and it work perfectly.

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Can not hide the vertical scroll bar!

    Hello,

    Depending on the DOCTYPE that you define on your page, Visual Studio will tell you that certain attributes are not supported, but it really comes down to which browser is rendering your page and how it works. You might want to test your page in all the main browsers to ensure that it works the same in all of them.

    Gary

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