|
|
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar | ||
Discussion by Carsten with 37 Replies.
Last Update: June 22, 2011, 12:43 am ( View Rated (26) ) (View Latest) | Page 1 of 2 pages. | ||
![]() |
|
|
The disabled however not hidden scrollbar means that a switch between a preview of your website in Mozilla Firefox and MS Internet Explorer will lead to an annoying change of the location of your layout. To disable this annoying switch and to hide the vertical scrollbar when the scrollbar is disabled anyway, put the following CSS code in your stylesheet:
CODE
html {overflow: auto;
}
CODE
<style type="text/css">html {
overflow: auto;
}
</style>
Not much code needed, huh
This is a nice tutorial, people might find use in it, congradulations Carsten you get a point!!!
heres my site that I need no scroll bars on the lower (frame, yea I hate frames too)
redescape.net/dj_hertz/index.html
-dave
Thanks Buddy.
-Suresh Kumar Pathak
I think people should just stop using IE and all go to FF.
But I guess I could use that on my pages for all the people that still use IE.
And alot of people use Firefox instead of IE, I know I certianly use Firefox.
There just isn't a solution?!?...So you will have to learn to live with a vertical scrollbar. Is that it?
I have used the html{overflow:hidden;} 'trick', but this doesn't' work in IE6 or IE7, only Mozilla browsers seem to get rid of the vertical scrollbar.
To be sure I have put it in the external CSS and also inline in the <head> of my pages. But whatever I do there always is a vertical scrollbar...
Is this just me?
-Erick Schluter
Html, body {
Overflow:auto;
}
-Keith Bucklen
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar
Scrollbar goes away, but my DIVs go crazy with that CSS option... Is there any other way to remove that damned scrollbar?
-reply by Zorba
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar
Replying to Carsten
Overflow-x:hidden
Overflow-y:hidden
It's simple not?
J have a nice day.
-reply by mostafa
SCROLLBAR-FACE-COLOR: #FFFFFF;
SCROLLBAR-HIGHLIGHT-COLOR: #FFFFFF;
SCROLLBAR-SHADOW-COLOR: #FFFFFF;
SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
SCROLLBAR-ARROW-COLOR: #000066;
SCROLLBAR-TRACK-COLOR: #FFFFFF;
SCROLLBAR-DARKSHADOW-COLOR: #FFFFFF;
SCROLLBAR-BASE-COLOR: #FFFFFF;
Piglet
Overflow-y:hidden; (vertical scroll bar)
Overflow-x:hidden; (hide horizontal scroll bar)
-reply by mehreen
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar
Replying to Trap FeedBacker
Thanks buddy I got it, I was finding this command since morning, thanks a lot for help me.
-reply by Faraz
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar
Overflow-y:hidden; (vertical scroll bar)
Overflow-x:hidden; (hide horizontal scroll bar)
^^ this worked perfectly for me.
-reply by tikistar
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar
This suggestion is very helpful for those who are developing web application for both IE and Mozila Browser.
-reply by Sam Galope
I had never thoughtto try that, but now i know you can, i must use it!!
nice thread!
GJ
* html body{
overflow:hidden;
}
also with y or x... it's very cool
Css Trick: Hide Disabled Internet Explorer Vertical Scrollbar
I am having a problem with the vertical scroll bar showing up within MSIE 7.0
(under Windows XP) on the default page of my website //rjdvorak.Net.
This does not happen with any other MS browser or any other browser (demonstrated by //browsershots.Org). I thought the directive
"overflow: auto" specified for the particular <div> would correct the problem.
Does anyone know how to solve this problem?
-question by are Dvorak
Id like to do the opposite.I have a site with flowing width (resizes according to browser area... I use percentages).
When viewed in firefox, it looks grea, but some pages of the are too short for a scrollbar, therefore some pages of the site have a scrollbar, others don't, that results into the design sometimes moving a few pixels when browsing from a page to pag...This made me understand the logic between the IE decision to keep the scrollbar but disable it...
Now the funny thing is that I'm trying to do the opposite, I want the scrollbar to appear in firefox even on pages that don't require a scrollbar, so that the design stays uniform across all pages.
[img]/txtmngr/images/smileys/smiley1.Gif[/img]
Any way to do that?
For IE6 and IE7 you can give like this
* html body{ overflow:hidden; }
# html body{ overflow:hidden; }
Regards,
Vijay vinoth
thanks a lot for sharing it!
Seems to me iGuest that you would need to use "scroll" instead of "auto".
Give that a try.
-reply by thorongil
I have also try this : "This vertical scrollbar is always there, even if the length of the page does not require a vertical scrollbar."
Is it the problem of web server? And how can be fixed?
Thank you
-reply by Man Yan
This is really good info. I've been trying to find a way to have all browsers have the vertical scroll bar showing all the time so that the shorter pages don't shift as you go from page to page, because of the scroll bar coming in and out. I keep forgetting to try targeting the html when I want to effect something with css. Making the html have an overflow: hidden and then the body have overflow: scroll makes that happen. The default IE scroll bar was always causing problems.
thorongil you are a star. I have been trying to stop my pages from shifting left because of the scroll bar and you have fixed it for me. It works beautifully in FF and IE with- html {overflow: scroll;}in the css. Thanks a million.
-reply by BayTheMoon
Similar Topics:
Speed Up Your Internet Explorer Fas...
How To Complete Remove Internet Exp...
Internet Explorer 8 Offers Improved...
I Need A Tut! (15)
|
(1) Saint Michael Css2 Tips And Tricks Issue #1 css tips and tricks for you beginners and experts
|
Loading...
HOME 





Flash CS3 CS4 CS5.5 Website Tutorial - Add Button Event Listeners in a Loop Actionscript 3.0
GTAC 2009 - Fighting Layout Bugs
Christian Heilmann: YQL and YUI: Building Blocks for Quick Applications
How To Add Drop Down Navigation Bars To iWeb
Google I/O 2010 - GWT's UI overhaul
Google I/O 2009 - Exploring Chrome Internals
Taternator Robotics Commercial 1

