no Scroll aber wo?

Status
Nicht offen für weitere Antworten.

green_phanta

Erfahrenes Mitglied
HI Leute!

Ich stelle dei oft-gefragte Frage wieder: Wie mache ich es das es keine Scrollbalken mehr gibt?
Ich habe mich umgesehen und finde oft: body scroll="no"
Aber, mein code sieht so aus:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<meta name="generator" content="Adobe GoLive" />
		<title>fading dreams photography</title>
		<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
	</head>

	<body>
		<div style="position:relative;width:801px;height:601px;margin:auto;-adbe-g:p;">
			<div style="position:absolute;top:0px;left:0px;width:800px;height:600px;">
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="600" width="800" align="middle">
					<param name="movie" value="lorenz6_container.swf" />
					<param name="quality" value="best" />
					<param name="play" value="true" />
					<embed align="middle" height="600" pluginspage="http://www.macromedia.com/go/getflashplayer" src="lorenz6_container.swf" type="application/x-shockwave-flash" width="800" quality="best" play="true"></embed> 
				</object></div>
		</div>
		<p></p>
	</body>

</html>

Wo soll ich da noScroll reingeben

Vielen Dank

greets green
 
Hi,

füg im Stylesheet basic.css einfach folgende CSS-Regel ein, um die Scrollbalken im Dokument zu unterbinden:

Code:
html,body {
overflow:hidden;
}
 
Würde es auch per CSS machen..

Falls du es aber doch im Quelltext ändern willst (weil z.B. mehrere Seiten das Stylesheet verwenden und du den Scollbalken auf anderen Seiten brauchst), musst du den Body-Tag ändern.

PHP:
	<body>

wird zu

PHP:
<body scroll="no">

Viel Spaß ;)
greetZ
 
Status
Nicht offen für weitere Antworten.
Zurück