sroll="no" in the body-tag

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
ThomasL
Posts: 11
Joined: Sun 27. Feb 2005, 18:09
Location: Hamburg
Contact:

sroll="no" in the body-tag

Post by ThomasL »

hi folks,

dont ask why - i know its bullshit forbit the scrolling. but when the client wants absolut, i dont start to discuss.

so now I'm searching the body-tag to put scroll="no" inside. unfortunately the IE7 dont like the html, body { overflow: hidden; }. thats why i need scroll="no"

I've found one time the body in the index.php - but i didnt got an effect.
can somebody help me?

gracias
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

In your CSS put something like the following

Code: Select all

html {
	height:100%; 
	max-height:100%; 
	padding:0; 
	margin:0; 
	border:0; 
	background:rgb(209,205,193);
	font-size:76%; 
	font-family:georgia, palatino linotype, times new roman, serif;
	/* hide overflow:hidden from IE5/Mac */ 
	/* \*/ 
	overflow: hidden; 
	/* */ 
	}

body {
	height:100%; 
	max-height:100%; 
	overflow:hidden;
	padding:0; 
	margin:0; 
	border:0;
	background:rgb(209,205,193);
	}
This should kill all your scroll bars :shock:

The important switch is

Code: Select all

	overflow:hidden;
Greetings
claus
ThomasL
Posts: 11
Joined: Sun 27. Feb 2005, 18:09
Location: Hamburg
Contact:

Post by ThomasL »

what a hack, incredible !!!

thanks a lot :D :D
Post Reply