Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Habe zwei DIV-Container verschachtelt. Den Hauptcontainer mit "z-index:100", den anderen mit einer niedrigeren "z-index".
/** Body
*
* html || Eigenschaften für die gesamte HTML-Seite
* body || Eigenschaften für den <body>-Tag innerhalb einer HTML-Seite
* #container || Umfasst den gesamten Inhalt der Seite (#header / #main (#sub / #inhalt) /) #footer)
*/
html * {margin:0; padding:0; color:#800000;}
body {background-color:#CDAC66; font-family:"comic sans ms"; font-size:10pt; font-weight:normal;}
#container {position:relative; width:900px; margin:0px auto 0px auto; text-align:left; overflow: hidden; z-index:100;}
#header {position:fixed; margin-bottom:5px; background-color:#CDAC66;}
#main {width:900px; margin-top:170px;}
#buttonleiste {width:600px; margin-top:10px; margin-bottom:10px;}
/*** hier ist der Scrollbereich bei langen Seiten */
.inhalt {position:relative; width:760px; margin-left:130px; padding:2px; z-index:-1;}
.........................
<!-- INCLUDE header_neu.html -->
<!-- INCLUDE sub.html -->
<div class="inhalt">
.................. Text.....Text ohne Ende.....<br />
Es gilt ausschließlich das maßgebliche Recht der Bundesrepublik Deutschland.<br />
<a href="http://www.juraforum.de"> Juraforum</a>
</div>
<!-- INCLUDE footer.html -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
<link rel="icon" href="../design/img/burafav.gif" type="image/gif" />
<link rel="stylesheet" type="text/css" href="{CSS_PATH}main_neu.css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>{PAGE_TITLE}</title>
</head>
<body>
<div id="container">
<div id="header">
<img src="{IMG_PATH}header.jpg" alt="Header-Grafik" width="900" height="100" />
<a href="{L_LOGIN}" class="a_buttonlink2">{T_LOGIN}</a>
<!-- IF S_LOGIN --><a href="{L_PB_INDEX}" class="a_buttonlink2">persönlicher Bereich</a><!-- ENDIF S_LOGIN -->
<!-- IF S_ADMIN --><a href="{L_ADMIN}" class="a_buttonlink2">Administrations-Bereich</a><!-- ENDIF S_ADMIN -->
</div>
<div id="main">
position: relative;
z-index: 1;