Ich möchte meinen Navigationsstreifen auf volle höhe Bringen, abzüglich Banner.
Ich hab das aktuell mit z-index und negativem Margin versucht aber das Ergebniss funktioniert nicht entsprechend. Soll heißen die Seite wird trotzdem unnötig nach unten gedehnt und das Hintergrundbild des navcontainers liegt über dem Banner. Jedenfalls mit Firefox 2 und Opera 9.5
Gibt es da eine besser Lösung? Ich hab das leider noch nicht zum ansehen online, da das ganze nur ein Django Template ist und der Code nicht so weit fertig ist.
Die HTML validiert korrekt mit ausnahme des Dateinamens der Navigationsbilder die CSS ohne Warnungen
Alles anzeigen
CSS
Alles anzeigen
Ich hab das aktuell mit z-index und negativem Margin versucht aber das Ergebniss funktioniert nicht entsprechend. Soll heißen die Seite wird trotzdem unnötig nach unten gedehnt und das Hintergrundbild des navcontainers liegt über dem Banner. Jedenfalls mit Firefox 2 und Opera 9.5
Gibt es da eine besser Lösung? Ich hab das leider noch nicht zum ansehen online, da das ganze nur ein Django Template ist und der Code nicht so weit fertig ist.
Die HTML validiert korrekt mit ausnahme des Dateinamens der Navigationsbilder die CSS ohne Warnungen
Quellcode
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
- <head>
- <link type="text/css" href="/media/style.css" rel="stylesheet" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Sehr Klein</title>
- </head>
- <body>
- <div id="container">
- <a id="banner" href="/"></a>
- <div id="content">
- <div id="advs">
- </div>
- <div id="navcontainer">
- <div class="nav">
- <a href="/" class="anav"><img src="/media/""" alt="Home" width="100" height="50" /></a><br />
- <a href="/david/" class="anav"><img src="/media/""" alt="David" width="100" height="50" /></a><br />
- <a href="/small/" class="anav"><img src="/media/""" alt="Wenig" width="100" height="50" /></a><br />
- </div>
- <div class="nav">
- <a href="/members/list/" class="anav"><img src="/media/""" alt="Künstler" width="100" height="50" /></a><br />
- <a href="/films/list/" class="anav"><img src="/media/""" alt="Filme" width="100" height="50" /></a><br />
- </div>
- <div class="nav">
- <a href="/impressum/" class="anav"><img src="/media/""" alt="Impressum" width="100" height="50" /></a><br />
- </div>
- <br />
- <div id="advb"><img src="/media/full.png" />
- </div>
- </div>
- <div id="text">
- <h1>Sehr Klein</h1>
- <p>Ganz wenig Text!</p>
- </div>
- </div>
- <br style="clear:both" />
- </div>
- </body>
- </html>
CSS
Quellcode
- * {
- padding: 0;
- margin: 0;
- }
- body {
- background-color: #000000;
- height: 101%;
- }
- html {
- height: 101%;
- }
- h1,h2,h3,h4,h5 {
- color: #dd0000;
- margin: 10px;
- font-family: sans-serif;
- }
- input {
- width: 420px;
- }
- textarea {
- width:420px;
- height:100px;
- }
- h1 {
- text-align: center;
- margin-bottom: 20px;
- }
- li {
- margin-left: 10px;
- }
- p {
- font-size: 12pt;
- font-weight: lighter;
- }
- #banner {
- width: 900px;
- height: 140px;
- margin: 0;
- display: block;
- /*border-left: 5px solid #aa0000;
- border-right: 5px solid #aa0000;*/
- background-image: url("/media/cryptic.gif");
- z-index: 5;
- }
- #container {
- background-color: #ffffff;
- border-left: 5px solid #5a5a59;
- border-right: 5px solid #5a5a59;
- width: 900px;
- margin: 0 auto;
- height: 101%;
- background-image: url("/media/nav.png");
- }
- #content {
- width: 900px;
- height: 100%;
- }
- #navcontainer {
- float: left;
- width: 180px;
- margin: 0px;
- margin-top: -140px;
- height: 100%;
- background-image: url("/media/navbar.gif");
- z-index: 1;
- }
- .nav {
- width: 160px;
- border-top: 1px #0c0c0c solid;
- border-left: 1px #0c0c0c solid;
- padding-top: 10px;
- padding-left: 10px;
- padding-bottom: 10px;
- }
- #advs {
- float: right;
- padding: 0px;
- padding-top: 10px;
- width: 120px;
- height: 600px;
- border: solid 2px;
- margin: 0px;
- }
- #advb {
- width: 125px;
- height: 125px;
- border: solid 2px;
- margin: 0px;
- }
- #text {
- width: 720px;
- padding: 10px;
- padding-top: 20px;
- }
- .anav {
- color: #e50000;
- text-decoration: none;
- margin-left: 30px;
- width: 100px;
- display: block;
- font-weight: bold;
- font-size: 14px;
- }
- .anav:visited {
- color: #550000;
- }
- .anav:hover {
- /* color: #e50000;
- background-color: #ededed;
- background-image: url("/media/nav_hoover.png"); */
- }
- a {
- color: #e50000;
- text-decoration: none;
- font-weight: bolder;
- }
- a:hover {
- background-image: url("/media/nav_hoover.png");
- }
- .expose {
- font-weight: bold;
- font-size: 25px;
- color: #FF0000;
- }
- .error {
- font-weight: bold;
- font-size: 25px;
- color: #ee1111;
- }
There are only 10 types of people in the world: Those who understand binary, and those who don't.
Download meines ersten Spiels:HIER
Über Feedback würde ich mich freuen
Download meines ersten Spiels:HIER
Über Feedback würde ich mich freuen
