Sie sind nicht angemeldet.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> <tr> <td>²</td> <td width="960"> <table border="0" cellpadding="0" cellspacing="0" width="960" height="100%"> <tr> <td colspan="2" width="960" height="170" bgcolor="#E4D6BA"> <img border="0" src="head.jpg" width="100%" height="170"></td> </tr> <tr> <td width="20" bgcolor="#E4D6BA">Menu</td> <td bgcolor="#E4D6BA">Inhalt</td> </tr> <tr> <td colspan="2" width="100%" height="170" background="footer.jpg" bgcolor="#E4D6BA"></td> </tr> </table> </td> <td>²</td> </tr> </table> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<html> <head> <meta http-equiv="Content-Language" content="de"> </head> <body bgcolor="#000000"> <center> <table border="0" cellpadding="0" cellspacing="0" width="960" height="100%"> <tr> <td colspan="2" width="100%" height="170" background="head.jpg" bgcolor="#E4D6BA"></td> </tr> <tr> <td width="20" bgcolor="#E4D6BA">Menu</td> <td bgcolor="#E4D6BA">Inhalt</td> </tr> <tr> <td colspan="2" width="100%" height="170" background="footer.jpg" bgcolor="#E4D6BA"></td> </tr> </table> </center> </body> </html> |
Zitat
Verwenden Sie Pixelangaben und Prozentangaben immer so, dass keine Konflikte entstehen. Im obigen Beispiel werden etwa alle Breiten prozentual bestimmt, und nur die Höhe wird mit Pixeln festgelegt. So kann der Browser im Beispiel für die gesamte Tabelle eine Breite von 60% Prozent zum Elternelement ermitteln und für die erste Spalte wiederum 50% davon. Die Angabe von 100 Pixeln Zeilenhöhe kommt damit nicht in Konflikt.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<html> <head> <meta http-equiv="Content-Language" content="de"> </head> <body bgcolor="#000000"> <center> <table border="0" cellpadding="0" cellspacing="0" width="960" height="100%"> <tr> <td colspan="2" width="960" height="170" background="head.jpg" bgcolor="#E4D6BA"></td> </tr> <tr> <td width="100" bgcolor="#0000FF">Menu</td> <td width="860" bgcolor="#FF0000">Inhalt</td> </tr> <tr> <td colspan="2" width="960" height="170" background="footer.jpg" bgcolor="#E4D6BA"></td> </tr> </table> </center> </body> </html> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<HTML> <HEAD> <TITLE>...</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <STYLE type=text/css>@import url( all.css ); BODY { TEXT-ALIGN: center } #frame { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: auto; WIDTH: 960px; MARGIN-RIGHT: auto; PADDING-TOP: 0px; TEXT-ALIGN: left } #contentmenu { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #ffffff; FLOAT: left; PADDING-BOTTOM: 0px; WIDTH: 100px; PADDING-TOP: 0px } #contentpage { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #cccccc; FLOAT: left; PADDING-BOTTOM: 0px; WIDTH: 860px; PADDING-TOP: 0px } #contenthead { BACKGROUND: #E4D6BA; HEIGHT: 170px; } #contentfoot { BACKGROUND: #E4D6BA; HEIGHT: 170px; } </STYLE> </HEAD> <BODY> <DIV id=frame> <DIV style="background-image:url('head.jpg'); margin:0px; padding:0px" id=contenthead>Head</DIV> <DIV id=contentmenu>Menu</DIV> <DIV id=contentpage>Page</DIV> <DIV style="background-image:url('footer.jpg'); margin:0px; padding:0px" id=contentfoot>Foot</DIV> <BR clear=all> <!-- without this little <br /> NS6 and IE5PC do not stretch the frame div down to encopass the content DIVs --> </DIV> <BR style="CLEAR: both"> </BODY> </HTML> |
Zitat von »Papa_Schlumpf«
-is der quallcode so vertretbar? also crossbrowser und so? grav. Fehler?
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
<html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <head> <title>...</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css">@import url( all.css ); body { text-align: center } #frame { padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin-left: auto; width: 960px; margin-right: auto; padding-top: 0px; text-align: left } #contentmenu { padding-right: 0px; padding-left: 0px; background: #ffffff; float: left; padding-bottom: 0px; width: 100px; padding-top: 0px } #contentpage { padding-right: 0px; padding-left: 0px; background: #cccccc; float: left; padding-bottom: 0px; width: 860px; padding-top: 0px } #contenthead { background: #e4d6ba url('head.jpg'); height: 170px; } #contentfoot { background: #e4d6ba url('footer.jpg'); height: 170px; } </style> </head> <body> <div id="frame"> <div id="contenthead"></div> <div id="contentmenu">Menu</div> <div id="contentpage">Page</div> <div id="contentfoot"></div> <br clear="all"> <!-- without this little <br /> NS6 and IE5PC do not stretch the frame div down to encopass the content divs --> </div> <br style="CLEAR: both"> </body> </html> |
-