ERLEDIGT
JA
JA
ANTWORTEN
15
15
ZUGRIFFE
988
988
EMPFEHLEN
-
Hi,
ich würde gerne eine Leiste links und rechts neben der Seite entlang laufen lassen. Ich habe schon ein paar Sachen ausprobiert, jedoch klappte das nicht wirklich.
Zudem ist die Navigation schon auf "float: left", wie kann ich etwas noch neben der Navigation anzeigen lassen?
Bin noch ein Anfänger in Sachen CSS und hoffe, dass ihr mir helfen könnt.
MFG
-Raid-
Code :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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
body { font-size: 15px; font-family: Times New Roman; margin: 0; padding: 1.2em; min-width: 40em; } h1 { font-size: 1.0em; margin: -6px -6px 0.2em; padding: 74.5px; background: url("http://www.tutorials.de/forum/images/header.jpg"); border: 0px ridge silver; } ul#Navigation { font-size: 14px; float: left; width: 140px; margin: -4px; padding: 0.29em; border: 0px solid black; } html ul#Navigation { width: 11.6em; w\idth: 10em; padding-left: 0; padd\ing-left: 0em; } ul#Navigation li { list-style: none; margin: 0; padding: 0px; border: 0px solid #3a3a3a; } ul#Navigation a { display: block; padding: 2px; } ul#Navigation a:link { color: black; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation a:link { text-decoration:none } ul#Navigation a:visited { text-decoration:none; text-align:center } ul#Navigation a:visited { color: #000000; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation a:hover { color: #14b7ab; background: url("http://www.tutorials.de/forum/images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation a:active { color: white; background: url("http://www.tutorials.de/forum/images/background.jpg"); text-align:center; } div#Datum { font-size: 1.1em; color:#FFFFFF; float: right; width: 10em; margin: 0; padding: 0; border: 0px dashed silver; background:url("http://www.tutorials.de/forum/images/Background-news-middle.jpg"); } div#Datum p3 { float: right; width: 9em; font-size: 1em; margin: 0em 0em; min-width: 20em; background: url("http://www.tutorials.de/forum/images/Background-News-Middle.jpg"); } div#Inhalt { margin: 0em 0em 0em 145px; padding: 0em 0em; } html div#Inhalt { height: 1em; } div#Inhalt h2 { font-size: 1.1em; margin: 0em 0em; background: url("http://www.tutorials.de/forum/images/background-news-top.jpg"); } div#Inhalt p { font-size: 1em; margin: 0em 0em; padding: 2em 0em; background: url("http://www.tutorials.de/forum/images/background-news-middle.jpg"); } p#Footer { clear: both; font:1.2em/135% bold; margin: -6px; padding: 0.16em; text-align: center; background: url("http://www.tutorials.de/forum/images/Footer.jpg"); }Geändert von -Raid- (17.09.07 um 21:38 Uhr)
-
17.09.07 21:42 #2Maik Tutorials.de Gastzugang
Hi,
von der linken und rechten Leiste kann ich in dem Stylesheet nichts entdecken, aber vielleicht hilft dir die angewandte Technik in dem Beispiel http://positioniseverything.net/thr.col.stretch.html weiter?
-
Die Leiste ist auch nicht vorhanden, da sie mir das Layout "gesprengt" hat.
Ich werde mir deinen Link mal angucken, danke!
Code :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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
body { font-size: 15px; font-family: Times New Roman; margin: 0; padding: 1.2em; min-width: 40em; } h1 { font-size: 1.0em; margin: -6px -6px 0.2em; padding: 74.5px; background: url("images/header.jpg"); border: 0px ridge silver; } div#BarL { float: left; width: 5em; margin: 0em 0em 0em; padding: 0; background: url("images/BarL.jpg"); } ul#Navigation { font-size: 14px; float: left; width: 140px; margin: -4px; padding: 0.29em; border: 0px solid black; } html ul#Navigation { width: 11.6em; w\idth: 10em; padding-left: 0; padd\ing-left: 0em; } ul#Navigation li { list-style: none; margin: 0; padding: 0px; border: 0px solid #3a3a3a; } ul#Navigation a { display: block; padding: 2px; } ul#Navigation a:link { color: black; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation a:link { text-decoration:none } ul#Navigation a:visited { text-decoration:none; text-align:center } ul#Navigation a:visited { color: #000000; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation a:hover { color: #14b7ab; background: url("images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation a:active { color: white; background: url("images/background.jpg"); text-align:center; } div#Datum { font-size: 1.1em; color:#FFFFFF; float: right; width: 10em; margin: 0; padding: 0; border: 0px dashed silver; background:url("images/Background-news-middle.jpg"); } div#Datum p3 { float: right; width: 9em; font-size: 1em; margin: 0em 0em; min-width: 20em; background: url("images/Background-News-Middle.jpg"); } div#Inhalt { margin: 0em 0em 0em 145px; padding: 0em 0em; } html div#Inhalt { height: 1em; } div#Inhalt h2 { font-size: 1.1em; margin: 0em 0em; background: url("images/background-news-top.jpg"); } div#Inhalt p { font-size: 1em; margin: 0em 0em; padding: 2em 0em; background: url("images/background-news-middle.jpg"); } p#Footer { clear: both; font:1.2em/135% bold; margin: -6px; padding: 0.16em; text-align: center; background: url("images/Footer.jpg"); }
Hier ist mein Versuch, die Grafik anzeigen zu lassen...Geändert von -Raid- (17.09.07 um 22:13 Uhr)
-
17.09.07 22:51 #4Maik Tutorials.de Gastzugang
Du musst die Grafik "BarL.jpg" stattdessen als Hintergrundbild für das body-Element definieren:
Code :1 2 3 4 5 6 7
body { font-size: 15px; font-family: Times New Roman; margin: 0; padding: 1.2em; min-width: 40em; [b]background: url(images/BarL.jpg) repeat-y;[/b] /* Hintergrundbild senkrecht wiederholen */ }
-
Danke, klappt soweit.
Hab jetzt nur das Problem, dass die Hintergrundfarbe weder aus der CSS noch aus der HTML sichtbar ist, das heißen soll, dass die Hintergrundfarbe immer weiß ist.
Zudem habe ich zwei Leisten die ich einfügen will, eine rechts und eine links.
Code :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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
body { font-size: 15px; font-color: #000000; font-family: Times New Roman; margin: 0; padding: 1.2em; min-width: 40em; background: url("images/BarL.jpg") repeat-y; background: url("images/BarR.jpg") repeat-y; } h1 { font-size: 1.0em; margin: -6px -6px 0.2em; padding: 74.5px; background: url("images/header.jpg"); border: 0px ridge silver; } ul#Navigation { font-size: 14px; float: left; width: 140px; margin: -4px; padding: 0.29em; border: 0px solid black; } html ul#Navigation { width: 11.6em; w\idth: 10em; padding-left: 0; padd\ing-left: 0em; } ul#Navigation li { list-style: none; margin: 0; padding: 0px; border: 0px solid #3a3a3a; } ul#Navigation a { display: block; padding: 2px; } ul#Navigation a:link { color: black; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation a:link { text-decoration:none } ul#Navigation a:visited { text-decoration:none; text-align:center } ul#Navigation a:visited { color: #000000; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation a:hover { color: #14b7ab; background: url("images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation a:active { color: white; background: url("images/NaviButton.jpg"); text-align:center; } div#Datum { font-size: 1.1em; color:#FFFFFF; float: right; width: 10em; margin: 0; padding: 0; border: 0px dashed silver; background:url("images/Background-news-middle.jpg"); } div#Datum p3 { float: right; width: 9em; font-size: 1em; margin: 0em 0em; min-width: 20em; background: url("images/Background-News-Middle.jpg"); } div#Inhalt { margin: 0em -6px 14em 145px; } html div#Inhalt { height: 1em; } div#Inhalt h2 { font-size: 1.1em; margin: 0em 0em; background: url("images/NaviDown.jpg"); } div#Inhalt p { font-size: 1em; margin: 0em 0em; padding: 2em 0em; background: url("images/InhaltBackground.jpg"); } p#Footer { clear: both; font:1em/100% bold; margin: -6px; padding: 0.16em; text-align: center; background: url("images/NaviDown.jpg"); }
Ein dickes DANKE! für deine Hilfe.
-
17.09.07 23:00 #6Maik Tutorials.de Gastzugang
Noch können einem Element keine zwei Hintergrundbilder zugewiesen werden.
Von daher müsstest du dir ein übergeordnetes DIV einrichten, dass das bestehende Layout aufnimmt und das Hintergrundbild "BarR.jpg" enthält:
Und von welcher Hintergrundfarbe sprichst du?Code :1 2 3
div#wrapper { background: url(images/BarR.jpg) right repeat-y; /* Hintergrundbild rechtsbündig vertikal wiederholen */ }
-
Vielleicht lässt sich das mit einem Bild besser erklären.
http://img129.imageshack.us/my.php?image=pageqh6.jpg
-
18.09.07 06:07 #8Maik Tutorials.de Gastzugang
Hi,
solange du keine Hintergrundfarbe für den Dokumentkörper definierst, wird dieser vom Browser weiß dargestellt:
Code :1 2 3 4 5 6 7
body { font-size: 15px; font-family: Times New Roman; margin: 0; padding: 1.2em; min-width: 40em; background: [b]#273A41[/b] url(images/BarL.jpg) repeat-y; /* Hintergrundbild senkrecht wiederholen */ }
-
Danke, dass war dann auch soweit alles.

___
Das mit dem Hintergrund ist mir schon klar, nur wurde die Hintergrundfarbe vorher aus der HTML ausgelesen, nicht aus der CSS-Datei.
___
Ich habe den Codejetzt in die CSS Datei eingefügt, jedoch wird kein Bild angezeigt. Habe versucht in der HTML diese Grafik mit diesem Code einzubinden:Code :1 2 3
div#wrapper { background: url(images/BarR.jpg) right repeat-y; /* Hintergrundbild rechtsbündig vertikal wiederholen */ }
,leider funktioniert das auch nicht, wenn du mir jetzt noch sagen könntest wo das hingehört, wärst du mein Held!Code :1
<div id="wrapper"></div>
MFG
-Raid-Geändert von -Raid- (18.09.07 um 13:05 Uhr)
-
18.09.07 13:10 #10Maik Tutorials.de Gastzugang
Das DIV #wrapper muss die vorhandenen Seitenbereiche (Navigation, Inhalt, usw.) umschliessen:
Desweiteren wirst du die Floatumgebung zum Abschluss "clearen" müssen, damit die Spalten das Element am unteren Elementrand nicht überlappen - siehe hierzu auch http://positioniseverything.net/easyclearing.html.Code :1 2 3 4 5
<body> <div id="wrapper"> <!-- Hier folgt der Bestand --> </div> </body>
Die Klasse .clearfix wird dann im DIV #wrapper aufgerufen:Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix {display: inline-block;} /* Hides from IE-mac \*/ * html .clearfix {height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */
Code :1
<div id="wrapper" [b]class="clearfix"[/b]> ... </div>
-
Den Kontentbereich konnte ich ganz einfach clearen, der Header und der Footer wollen aber irgendwie nicht. Der Balken "steckt" jetzt zwischen dem Header und dem Footer fest.
Code :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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
.clearfix:after { content: "."; display: block; height: 100%; clear: both; visibility: hidden; } .clearfix {display: inline-block;} /* Hides from IE-mac \*/ * html .clearfix {height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */ body { font-size: 15px; font-color: #000000; font-family: Times New Roman; margin: 0em; padding: 1.45em; min-width: 40em; background: #1a2d34 url("images/BarL.jpg") repeat-y; } h1 { font-size: 1.0em; margin: -23px -6px 0.2em; padding: 74.5px; background: url("images/header.jpg"); border: 0px ridge silver; } ul#Navigation { font-size: 14px; float: left; width: 140px; margin: -7.5px; padding: 0.2em; border: 0px solid black; clear:both; } ul#Navigation li { list-style: none; border: 1px solid; clear: both; } ul#Navigation a { display: block; padding: 2px; } ul#Navigation a:link { color: black; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation a:link { text-decoration:none } ul#Navigation a:visited { text-decoration:none; text-align:center } ul#Navigation a:visited { color: #000000; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation a:hover { color: #14b7ab; background: url("images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation a:active { color: white; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation2 { font-size: 14px; float: left; width: 140px; margin: 0px -37px; padding: 2.25em; border: 0px solid black; clear:both; } ul#Navigation2 li { float: left; width: 138px; list-style: none; border: 1px solid; clear: both; } ul#Navigation2 a { display: block; padding: 2px; } ul#Navigation2 a:link { color: black; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation2 a:link { text-decoration:none } ul#Navigation2 a:visited { text-decoration:none; text-align:center } ul#Navigation2 a:visited { color: #000000; background: url("images/NaviButton.jpg"); text-align:center; } ul#Navigation2 a:hover { color: #14b7ab; background: url("images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation2 a:active { color: white; background: url("images/NaviButton.jpg"); text-align:center; } div#wrapper { background: url(images/BarR.jpg) right repeat-y; padding: 0em 1.5%; margin: 0em 0em; } div#Datum { font-size: 1.1em; color:#ffffff; float: right; width: 10em; margin: -30.2% 0em; padding: 0em 0em; border: 0px dashed silver; background:url("images/Background-news-middle.jpg"); clear: both; } div#Inhalt { margin: -3px -6px 39% 140px; } html div#Inhalt { height: 1em; } div#Inhalt h2 { font-size: 1.1em; margin: 0em 0em; background: url("images/NaviDown.jpg"); } div#Inhalt p { font-size: 1em; margin: 0em 0em; padding: 2em 0em; background: url("images/InhaltBackground.jpg"); } p#Footer { font:1em/100% bold; margin: -6px; padding: 0.20em 0em; text-align: center; background: url("images/NaviDown.jpg"); }
Code :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 48 49 50 51 52 53 54 55 56
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>NailDesign V3 - Willkommen</title> <style type="text/css"> @import "layout.css"; </style> <script type="text/javascript" src="uhrzeit.js"></script> </head> <body> <div id="wrapper" class="clearfix"> <h1></h1> <ul id="Navigation"> <center><li>Navigation</a></li></center> <li><a href="index.html">Willkommen</a></li> <li><a href="preise.htm">Preise</a></li> <li><a href="bilder.htm">Bilder</a></li> <li><a href="links.htm">Links</a></li> <li><a href="kontakt.htm">Kontakt</a></li> <li><a href="impressum.htm">Impressum</a></li> <center><li>  </li></center> </ul> <ul id="Navigation2"> <center><li>Navigation</a></li></center> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <center><li>  </li></center> </ul> <center><div id="Datum"> <body onLoad="UhrzeitAnzeigen();"> <span id="Uhrzeit"></span> </div></center> <div id="Inhalt"> <h2><center><span style=color:white>Willkommen auf der Seite von Uschi Huthmacher</span></center></h2> <center><p>Under Construction<br><br><br><br><br><br><br></p></center> </div> <p id="Footer">© <script language="javascript" type="text/javascript"> <!-- var Datum = new Date(); document.write(Datum.getFullYear()); //--> </script> by Naildesign</p> </div> </body> </html>
Geändert von -Raid- (18.09.07 um 22:41 Uhr)
-
Ich nochmal...
Ich schaffe es einfach nicht, diese Leisten richtig einzubinden.
Bin am verzweifeln...
Hier mal ein Bild zu der Seite:
http://img181.imageshack.us/my.php?image=starswc2.jpg
Und hier der bisherige Code:
Code :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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
.clearfix:after { content: "."; display: block; height: 100%; clear: both; visibility: hidden; } .clearfix {display: inline-block;} /* Hides from IE-mac \*/ * html .clearfix {height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */ body { font-size: 15px; font-color: #000000; font-family: Times New Roman; margin: 0em; padding: 1.45em; min-width: 40em; background: #1a2d34 url("http://www.tutorials.de/forum/images/BarL.jpg") repeat-y; } h1 { font-size: 1.0em; margin: -23px -6px 0.2em; padding: 74.5px; background: url("http://www.tutorials.de/forum/images/header.jpg"); border: 0px ridge silver; } ul#Navigation { font-size: 14px; float: left; width: 140px; margin: -3px -6px; padding: 0em 0em; border: 0px solid black; clear:both; } ul#Navigation li { list-style: none; border: 1px solid; clear: both; } ul#Navigation a { display: block; padding: 2px; } ul#Navigation a:link { color: black; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation a:link { text-decoration:none } ul#Navigation a:visited { text-decoration:none; text-align:center } ul#Navigation a:visited { color: #000000; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation a:hover { color: #14b7ab; background: url("http://www.tutorials.de/forum/images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation a:active { color: white; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation2 { font-size: 14px; float: left; width: 140px; margin: 0px -37px; padding: 2.25em; border: 0px solid black; clear:both; } ul#Navigation2 li { float: left; width: 138px; list-style: none; border: 1px solid; clear: both; } ul#Navigation2 a { display: block; padding: 2px; } ul#Navigation2 a:link { color: black; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation2 a:link { text-decoration:none } ul#Navigation2 a:visited { text-decoration:none; text-align:center } ul#Navigation2 a:visited { color: #000000; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } ul#Navigation2 a:hover { color: #14b7ab; background: url("http://www.tutorials.de/forum/images/NaviButtonOver.jpg"); text-align:center; } ul#Navigation2 a:active { color: white; background: url("http://www.tutorials.de/forum/images/NaviButton.jpg"); text-align:center; } div#wrapper { background: url(images/BarR.jpg) right repeat-y; padding: 0em 1.5%; margin: 0em 0em; } div#Datum { font-size: 1.1em; color:#ffffff; float: right; width: 10em; margin: -30.2% 0em; padding: 0em 0em; border: 0px dashed silver; clear: both; } div#Inhalt { margin: -3px -6px 39% 140px; } html div#Inhalt { height: 1em; } div#Inhalt h2 { font-size: 1.1em; margin: 0em 0em; background: url("http://www.tutorials.de/forum/images/NaviDown.jpg"); } div#Inhalt p { font-size: 1em; margin: 0em 0em; padding: 2em 0em; background: url("http://www.tutorials.de/forum/images/InhaltBackground.jpg"); } p#Footer { font:1em/100% bold; margin: -6px; padding: 0.20em 0em; text-align: center; background: url("http://www.tutorials.de/forum/images/NaviDown.jpg"); }
Code :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 48 49 50 51 52 53 54 55 56
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>NailDesign V3 - Willkommen</title> <style type="text/css"> @import "layout.css"; </style> <script type="text/javascript" src="uhrzeit.js"></script> </head> <body> <div id="wrapper" class="clearfix"> <h1></h1> <ul id="Navigation"> <center><li>Navigation</a></li></center> <li><a href="index.html">Willkommen</a></li> <li><a href="preise.htm">Preise</a></li> <li><a href="bilder.htm">Bilder</a></li> <li><a href="links.htm">Links</a></li> <li><a href="kontakt.htm">Kontakt</a></li> <li><a href="impressum.htm">Impressum</a></li> <center><li>  </li></center> </ul> <ul id="Navigation2"> <center><li>Navigation</a></li></center> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <center><li>  </li></center> </ul> <center><div id="Datum"> <body onLoad="UhrzeitAnzeigen();"> <span id="Uhrzeit"></span> </div></center> <div id="Inhalt"> <h2><center><span style=color:white>Willkommen auf der Seite von Uschi Huthmacher</span></center></h2> <center><p>Under Construction<br><br><br><br><br><br><br></p></center> </div> <p id="Footer">© <script language="javascript" type="text/javascript"> <!-- var Datum = new Date(); document.write(Datum.getFullYear()); //--> </script> by Naildesign</p> </div> </body> </html>
-
24.09.07 06:18 #13Maik Tutorials.de Gastzugang
Hi,
vielleicht solltest du einfach mal die Polsterungseigenschaften des Dokumentkörpers und Viewports auf null setzen, damit die rechte Leiste auch bis an den rechten Fensterrand reicht:
und das doppelt vorhandene <body>-Tag im DIV #Datum entfernen.Code :1 2 3 4
html,body { margin:0; padding:0; }
Ansonsten kann ich da im Stylesheet bzgl. der beiden Hintergrundgrafiken keinen Fehler ausmachen.
-
Danke Maik, klappt jetzt.
War das padding im body.
Jetzt sieht die Seite zwar soweit gut aus, jedoch reicht der rechte Balken nicht bis zum "Boden".
Wie auf dem Bild oben auch zu sehen.
____
Keine Ahnung was ich da jetzt gemacht habe, aber jetzt ist das Layout perfekt.
Danke für deine super Hilfe, Maik
____
Gibt es einen Code, mit dem der Footer immer auf dem "Boden" der Seite ist?
____
Wie kann ich dem über und unter der Navigation ein Backgroundimage einfügen?
Habe es bisher nur geschafft, indem ich den Text als Link angegeben habe:
Code :1 2 3 4 5 6 7 8 9 10
<ul id="Navigation"> <center><li2><a href="#">Navigation</a></li2></center> <li><a href="index.html">Willkommen</a></li> <li><a href="preise.htm">Preise</a></li> <li><a href="bilder.htm">Bilder</a></li> <li><a href="links.htm">Links</a></li> <li><a href="kontakt.htm">Kontakt</a></li> <li><a href="impressum.htm">Impressum</a></li> <center><li2><a href="#">  </li2></center></a> </ul>
Code :1 2 3 4 5 6 7 8 9 10 11 12
ul#Navigation li2 { list-style: none; border: 0px solid; } ul#Navigation li2 a:link { background: url("http://www.tutorials.de/forum/images/NaviDown.jpg"); } ul#Navigation li2 a:visited { background: url("http://www.tutorials.de/forum/images/NaviDown.jpg"); } ul#Navigation li2 a:hover { color: white; background: url("http://www.tutorials.de/forum/images/NaviDown.jpg");Geändert von -Raid- (25.09.07 um 06:03 Uhr)
-
25.09.07 06:27 #15Maik Tutorials.de Gastzugang
Guten Morgen

Ich häng dir mal ein Beispiel an, wie sich der Footer am unteren Fensterrand positionieren lässt und bei zunehmenden Inhalt nach unten wandert. Netter Nebeneffekt: die rechte "Leiste" im DIV #wrapper ist nun genauso hoch, wie die linke "Leiste".
Ein HTML-Element namens "li2" gibt es überhaupt nicht, von daher kann das Stylesheet auch nicht funktionieren.
Ähnliche Themen
-
3 Divs, einer links oben, einer links unten und rechts einer daneben !
Von ZipZek im Forum CSSAntworten: 6Letzter Beitrag: 30.12.07, 13:26 -
links und rechts ausrichten
Von cardician im Forum HTML & XHTMLAntworten: 5Letzter Beitrag: 01.03.05, 15:48 -
<< newbie - Rahmen links und rechts
Von griddler im Forum HTML-EditorenAntworten: 0Letzter Beitrag: 04.01.05, 17:10 -
Tabellenrahmen links und rechts
Von lobonegro im Forum HTML & XHTMLAntworten: 6Letzter Beitrag: 27.10.04, 11:30 -
Frames rechts UND links in Dreamweaver?
Von SkylineRacer im Forum HTML-EditorenAntworten: 5Letzter Beitrag: 27.04.04, 16:39





Login





