Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS: Höhe 100%

Empfohlene Antworten

Veröffentlicht

Ich verwende jetzt eine Tabelle mit 3 Zeilen.

Wie bekomme ich es hin, dass die untere Zeile immer ganz unten ist, auch wenn die Höhe < 100% ist?


<body style='margin:0px;height:100%;width:100%;vertical-align:top'>


<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%' valign='top'>

<tr width='100%' height='148'>

	<td width='100%' height='148' style='background:url(images/layout/header.jpg) repeat-x'> </td>

</tr>

<tr valign='top' width='100%' height='100%'>

	<td valign='top' height='100%' style='padding:0 10px 10px 10px'><?php include("content.php"); ?></td>

</tr>

<tr width='100%' height='35' valign='bottom'>

	<td width='100%' height='35' align='center' valign='middle' style='bottom:0px;background:url(images/layout/footer.jpg) repeat-x'><?php echo $footer_text; ?></td>

</tr>

</table>


</body>


<!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=iso-8859-1" />

<title>Unbenanntes Dokument</title>

<style type="text/css">

body{

 padding:0;

 margin:0;

}


#page{

 position:absolute;

 left:0px;

 bottom:0px;

 top:0px;

 right:0px;

 width:100%;

 height:100%;

}


#header{

 position:absolute;

 left:0px;

 top:0px;

 height:148px;

 width:100%;

 background-image:url(images/layout/header.jpg);

 background-repeat:repeat-x;

}


#main{

 position:absolute;

 top:148px;

 bottom:35px;

 left:0px;

 right:0px;

 width:100%;

 height:auto;

}


#footer{

 position:absolute;

 bottom:0px;

 left:0px;

 right:0px;

 height:35px;

 background-image:url(images/layout/footer.jpg);

 background-repeat:repeat-x;

}

</style>

</head>


<body>

<div id="page">

  <div id="header"> </div>

  <div id="main"><?php include("content.php"); ?></div>

  <div id="footer"><?php echo $footer_text; ?></div>

</div>

</body>

</html>

Warnung!

Nicht IE 6 sicher und was darunter ist!

Aber warum willst du das die Page immer 100% hoch ist?

Dann kannst du ja gleich Frames benutzen!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.