Click here to Skip to main content
15,742,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My internet explorer version is 9. But I use Browser Mode: IE7 and Document Mode: IE7 standards. My Asp.Net project must viewed on full screen and without vertical scrollbar. How can I remove vertical scrollbar on fullscreen.

I use overflow:hidden css code and it removes scrollbar but break down the screen of project and screen didn't shown

<form id="form1" runat="server">
    <div class="butun"> //all div tag inside of this div

//masterpage css code![image to show scrollbar][1]
html, body {
height: 100%;
font-family:Arial; }
body {
background-color:#0ff;  }

.butun {
margin: 0 auto -4%;
Updated 2-Jan-13 2:44am
Sergey Alexandrovich Kryukov 2-Jan-13 15:34pm    
Makes no sense.

I makes no sense, and I really hope that you cannot do this. A scroll bar appears when your content does not fit the page vertically or horizontally. And the user of the site has every right to make the size of the browser window as she/he likes. Preventing it would be a big abuse. This "requirement" is wrong in principle because it aims to limit natural user's writes to access you content.

You should think in completely different direction: to make your page layout tolerant to window size. I designed this sophisticated query :-) for you to look for appropriate techniques:[^].

This is really what you should look for.

Share this answer
bmyusuf 2-Jan-13 16:11pm    
My project will not published to Internet. It will run in localhost and will shown on large screen lcd monitor. And no one will resize the browser. The project have two part; one of these part is main page which all people can see for some information reason and the other part is admin panel to change information in main screen. I just want to remove the scrollbar which is shown in main screen. Now, is it make any sense.
Sergey Alexandrovich Kryukov 2-Jan-13 17:22pm    
One of the major principles of programming is: "Never say nobody will do it". It does not makes sense, sorry. The abuse is abuse. Better read the second part of my answer, with the references. You will probably see what you should be doing.
vbmike 3-Jan-13 15:06pm    
You may have bettter luck coding and actual admin page for you to make changes as it sounds like that is what you may be trying to accomplish.
Sergey Alexandrovich Kryukov 3-Jan-13 15:11pm    
This is totally unrelated, I would say. Accomplish what? Something which makes no sense? Why?
(Are you talking to OP, anyway? Or who? :-)
vbmike 3-Jan-13 17:10pm    
I thought I replied to him, not necessarily you. What he wants to do does not make sense, I agree, but I think he is trying to accomplish something else and has not stated it correctly.
You may need to head over to the answer of AnthonyWJone in website. He mentioned there as below:
So far we have overflow:hidden on the body. However IE doesn't always honor that and you need to put scroll="no" on the body element as well and/or place overflow:hidden on the html element as well.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900