Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: IE7 CSS
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%;
Posted 2-Jan-13 3:27am
Edited 2-Jan-13 3:44am
Sergey Alexandrovich Kryukov at 2-Jan-13 15:34pm
Makes no sense.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 Smile | :) for you to look for appropriate techniques:[^].
This is really what you should look for.
bmyusuf at 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 at 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 at 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 at 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 at 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.
Sergey Alexandrovich Kryukov at 3-Jan-13 17:48pm
That could be...
Thank you,
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 434
1 OriginalGriff 380
2 CHill60 240
3 Abhinav S 220
4 CPallini 220
0 Sascha Lefévre 75
1 OriginalGriff 70
2 F-ES Sitecore 55
3 Peter Leow 50
4 Dave Kreskowiak 40

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100