Knut Krueger kirjoitti seuraavasti:
Thanks in advance for your help
Try the following. It fixes some of the problems.
Sorry for posting code on the NG. Didn't have time to put it online.
I'm still puzzled with the right edge box and how its positioning works,
namely the 6.5 em right margin is odd.
*** CSS***
body {
color: black;
background-color: white;
font-family: Helvetica, Arial, sans-serif;
margin: 1em 3em;
padding: 1em;
border: 2px solid #000000;
min-width: 41em; /* Mindestbreite verhindert Umbruch und
Anzeigefehler in modernen Browsern */
}
h1 {
font-size: 1.5em;
margin: 0 0 0.7em;
padding: 0.3em;
text-align: center;
background-color: white;
border: 2px ridge silver;
}
ul#navigation {
font-size: 1.5em;
float: left;
width: 197px;
margin: 0 0 1.2em;
padding: 0;
text-align: center;
min-height:600px;
color: white;
background-color: rgb(209,77,73);
font-weight: bold;
}
ul#navigation ul {
font-size: 0.75em;
margin: 0;
padding: 0;
}
ul#navigation li {
list-style: none;
margin: 0;
}
ul#navigation a {
display: block;
border: 3px solid rgb(209,77,73);
margin: 3px;
padding: 0.1em;
}
ul#navigation a:link {
color: white;
background-color: rgb(209,77,73);
}
ul#navigation ul a:link {
color: #999;
background-color: rgb(209,77,73);
}
ul#navigation a:visited {
color: white;
background-color: rgb(209,77,73);
}
ul#navigation ul a:visited {
color: #666;
background-color: rgb(209,77,73);
}
ul#navigation a:hover {
border-color: white;
}
ul#navigation ul a:hover {
color: black;
background-color: white;
}
ul#navigation a:active, ul#navigation ul a:active {
color: white;
background-color: gray;
}
#navigation h2 {
font-size: 1.5em;
margin: 0; padding: 0em;
text-align: center;
}
#hl {
color: white;
background-color: rgb(209,77,73);
font-size: 1.5em;
margin: 0; padding: 0em;
text-align: center;
}
div#info {
font-size: 0.9em;
float: right;
width: 10em;
margin: 0em 6.5em 0em 2em;
padding: 0em 0em 0em 1em;
background-color: white;
}
div#info h2 {
font-size: 1.33em;
margin: 0.2em 0.5em;
}
div#info p {
font-size: 1em;
margin: 0.5em;
}
div#inhalt {
margin: 0 220px 1em 200px;
padding: 0 1em;
}
* html div#inhalt {
height: 1em; /* Workaround gegen den 3-Pixel-Bug des Internet
Explorer bis Version 6 */
}
div#inhalt h2 {
font-size: 1.2em;
margin: 0.2em 0;
}
div#inhalt p {
font-size: 1em;
margin: 1em 0;
}
p#fusszeile {
clear: both;
font-size: 0.9em;
margin: 0; padding: 0.1em;
text-align: center;
background-color: white; border: 1px solid silver;
}
p#adresse {
clear: both;
font-size: 1.2em;
color: white;
margin: 0; padding: 0em 1em;
text-align: left;
vertical-align:middle;
background-color: rgb(0,0,128);
height: 30px;
}
..topbox {
background: #ffff66 url(bar_m.jpg) no-repeat;
height: 140px;
text-align: center;
width: auto;
}
..topbox img {
display: block;
}
..topleft {
float: left;
}
..topright {
float: right;
}
..margin_main
{
min-width: 800px;
}
#editor {
margin: 0;
padding: 0;
}
a:link { color:#000000; text-decoration:none }
a:visited { color:#804000; text-decoration:none }
a:hover { color:#E00000; text-decoration:none}
a:active { color:#F00000; text-decoration:none }
a:focus {color:#00E000; text-decoration:none }
a.an { text-decoration:none; }
h1 { font-size:150%; margin-bottom:0.5em; }
h2 { font-size:130%; margin-bottom:0.5em; }
h2.sh2 { font-size:120%; }
h3,h3.xmp,h3.xpl,h3.inf,h3.tip,h3.akt { font-size:110% }
h4 { font-size:100%; font-weight:normal; color:black;}
h5 { font-size:90%; font-weight:bold; color:black;}
p,ul,ol,li,div,td,th,address,blockquote { font-size:92%;}
li { margin-top:0.3em; }
h1,h2,h3,h4,p,ul,ol,li,div,td,th,address,blockquote,nobr,b,i {
font-family:Arial,sans-serif; }
pre { font-family:Courier New,Courier; font-size:93%; color:#0000C0; }
..xmpcode { border-width:85px; border-style:solid; border-color:#EEEEEE;
background-color:#FFFFE0; }
..qbar { background-color:#FFFFE0; font-size:93%;
font-family:Arial,sans-serif; }
code,kbd,tt { font-family:Courier New,Courier; color:#0000C0; }
var { font-style:normal; color:#0000C0; }
blockquote,cite { font-style:italic; }
..code { background-color:#FFFFE0; }
..tabxpl { background-color:#E4EEFF; }
..doc { background-color:#EEEEEE; }
..nav { background-color:#FFEEDD; }
..blue { color:#0000C0; }
pre.normal { color:#000000; }
*** HTML ***
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head lang="de">
<title>Arnfelser Schloßspiele - Bilder</title>
<link type="text/css" rel="stylesheet" href="css/layout.css">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body>
<div id="margin_main">
<div class="topbox"><span class="topright"><img
src="bilder/bar_r.jpg" alt="" title="right" height="140" width="220"></span>
</div>
<p id="adresse">A-8454 Arnfels - Südsteiermark - Österreich</p>
<ul id="navigation">
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:1">Schlossspiele</a>
<ul>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:2">Das
Stück</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:3">Inhalt</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:4">Termine</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:5">Bilder</a></li>
</ul>
</li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:6">Theater im
Kino</a>
<ul>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:7">Das
Stück</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:8">Inhalt</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:9">Termine</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:10">Bilder</a></li>
</ul>
</li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:11">Junges
Theater</a>
<ul>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:12">Das
Stück</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:13">Inhalt</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:14">Termine</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?db=text:15">Bilder</a></li>
<li><a
href="
http://arnfelser.knut-krueger.de/index.php?id=impressum.php">Impressum</a></li>
</ul>
</li>
</ul>
<div id="info">
<img src="bilder/schlossspiele_theme.jpg" alt="Schloßspiele">
</div>
<div id="inhalt">not ready</div>
<p id="fusszeile">Fußzeile</p>
<!--<p><a style="color:black"
href="../mehrspaltige.htm#kopf_fuss">zurück</a></p>-->
</div>
</body>
</html>