Einzelnen Beitrag anzeigen
  #14  
Alt 05.04.2010, 19:47:56
st68 st68 ist offline
Anfänger
 
Registriert seit: Jul 2009
Alter: 55
Beiträge: 25
AW: Mit was ein Layout erstellen

so hab ich das mal gelöst, als ich mir noch angst vor frames machen lassen habe:

HTML-Code:
<html>
<head>
<title>Frames in CSS</title>

<style type="text/css"> 

       * html body { padding: 0 0 0 200px; } /* Set value to (0 0 0 WidthOfFrameDiv),  /*IE6 hack*/

* html #main_frame { height: 100%;                                                     /*IE6 hack*/
                     width: 100%; }

              body { margin: 0;
                     padding: 0;
                     border: 0;
                     height: 100%; 
                     max-height: 100%;
                     overflow: auto; }

       #menu_frame { position: absolute;
                     top: 0;
                     bottom: 0;
                     left: 0;
                     width: 200px; /* Framebreite */
                     height: 100%;
                     overflow: auto; }

       #main_frame { position: fixed;
                     top: 0; 
                     left: 200px; /* Frameabstand nach links*/
                     right: 0;
                     bottom: 0;
                     overflow: auto; }

       .innerframe { margin: 10px; } /* Abstand des Frameinhalts */

</style>

</head>

<body>

<div id="menu_frame">
<div class="innerframe">

<h2><a name="menu_top" />Menü-Frame</h2>

<script type="text/javascript"> i=1; while (i<100) { document.write("<a href=\"#menu_top\" title=\"zum Seitenanfang\">Link "+i+" zum Main-Frame</a><br />"); i++; } </script>

</div>
</div>

<div id="main_frame">
<div class="innerframe">

<h2><a name="main_top" />Main-Frame</h2>

<script type="text/javascript"> i=1; while (i<100) { document.write("<a href=\"#main_top\" title=\"zum Seitenanfang\">Absatz "+i+" im Main-Frame</a><br />"); i++; } </script>

</div>
</div>

</body>
</html>
aber es kommt ja öfter mal vor, das man so was wie einen "dummy-frame" braucht. wie löst man das dann, ohne frames und ohne iframes?
Mit Zitat antworten