Click here to Skip to main content
Rate this: bad
good
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
 
//masterpage
<body>
<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 {
min-height:100%;
height:100%;
margin: 0 auto -4%;
   }
Posted 2-Jan-13 3:27am
bmyusuf282
Edited 2-Jan-13 3:44am
v2
Comments
Sergey Alexandrovich Kryukov at 2-Jan-13 15:34pm
   
Makes no sense.
—SA
Rate this: bad
good
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:
http://bit.ly/12YSHKj[^].
 
This is really what you should look for.
 
—SA
  Permalink  
Comments
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.
—SA
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? :-)
—SA
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,
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You may need to head over to the answer of AnthonyWJone in stackoverflow.com 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.
 
Thanks!
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 381
1 Sergey Alexandrovich Kryukov 245
2 Marcin Kozub 225
3 Praneet Nadkar 217
4 /\jmot 189
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2014
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