Hi zusammen!
Unten stehend Quellcode und CSS eines Entwurfs und Fragen, um deren Beantwortung ich euch herzlich bitte & danke!
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" />
<title>undefined</title>
<meta name="Description" content="" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link href="bug1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="titel">titelgrafik</div>
<div id="nav">
<p>navigation</p>
<p>Punkt 1</p>
<p>Punkt 2</p>
<p>Punkt 3</p>
<p>Punkt 4</p>
<p>Punkt 5</p>
</div>
<div id="sub">
<p>submenu</p>
<p>Punkt a</p>
<p>Punkt b</p>
<p>Punkt c</p>
</div>
<div id="content">
<p> </p>
<table border="1" cellspacing="10">
<tr>
<td align="center" nowrap="nowrap">Tabelle A</td>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
</tr>
<tr>
<td align="center" nowrap="nowrap"><strong>Spalte 1</strong></td>
<td align="center" nowrap="nowrap"><strong>Spalte 2</strong></td>
<td align="center" nowrap="nowrap"><strong>Spalte 3</strong></td>
</tr>
<tr>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
</tr>
<tr>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
</tr>
<tr>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
<td align="center" nowrap="nowrap"> </td>
</tr>
</table>
<p> </p>
</div>
<hr />
</div>
<div id="footer"></div>
</body>
</html>
Code:
html, body {
padding:0;
height:101%;
margin: 0;
}
div#container {
min-height: 100%;
}
* html #container {
height: 100%;
}
#container {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
background-repeat: repeat-y;
background-image: url(Bilder/hg.jpg);
}
#container #titel {
display: block;
}
#container #nav {
float: left;
width: 200px;
text-align: left;
margin-top: 100px;
text-indent: 10px;
}
#container #sub {
float: right;
width: 200px;
text-align: center;
}
#container hr {
clear: both;
visibility: hidden;
}
#container #content hr {
color: #003366;
visibility: visible;
}
#container #content {
margin-top: 30px;
margin-right: 210px;
margin-left: 210px;
margin-bottom: 30px;
overflow: visible;
zoom: 1;
}
#footer {
width: 200px;
margin-top: -50px;
text-align: center;
position: relative;
}
#container #nav a:link {
color: #003366;
text-decoration: none;
display: block;
}
#container #nav a:visited {
color: #003366;
text-decoration: none;
display: block;
}
#container #nav a:hover {
color: #003366;
text-decoration: none;
display: block;
background-color: #5C8B2E;
}
a:link {
color: #003366;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #003366;
}
a:hover {
text-decoration: underline;
}
#container #nav em {
background-color: #FFFFFF;
display: block;
}
h2 {
color: #003366;
}
h3 {
color: #000000;
font-weight: lighter;
}
h4 {
color: #003366;
}
h5 {
font-size: 13px;
font-weight: lighter;
}
Bitte verändert die horizontale Browsergröße von Vollbild manuell kleiner.
- Der horiz. Rollbalken erscheint, sobald der horiz. Platz für die Tabelle A nicht mehr ausreicht?
- Warum „fährt“ das div „sub in die Tabelle A im div „content“?
- Warum ist das div „sub“ bei weiterer Verkleinerung des Browserfensters erst oberhalb der Tabelle A, bei noch weiterer Verkleinerung dann unter halb der Tabelle A zu sehen?
Es "verschiebt" mir die Positionierung der einzelnen divs auch dann, wenn ich im IE oder Firefox die Lesezeichen-Symbolleiste einblende.
Vielen Dank für Lösungsvorschläge & schönen Tag!