PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS: Navigationsbalkenüber komplette Breite
Beitrag
<blockquote data-quote="sukitio" data-source="post: 1791609" data-attributes="member: 336746"><p><strong>AW: CSS: Navigationsbalkenüber komplette Breite</strong></p><p></p><p>OK, dann hab ich das mit dem Problem zeigen falsch verstanden, sorry dafür. Hier dann mal der bisherige Code:</p><p>HTML</p><p> [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml"></p><p><head></p><p><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></p><p><title>erste page mit css</title></p><p><link href="style.css" type="text/css" rel="stylesheet"></p><p></head></p><p></p><p><body></p><p><div id="kopf"></div></p><p><div id="navi"></p><p> c<a href="http://www.google.de" class="navi_type" style="position:absolute; top:5px;">home</a></p><p> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:30px;">gallerie 1</a></p><p> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:55px;">gallerie 2</a></p><p> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:80px;">vita</a></p><p> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:105px;">kontakt</a></p><p> <a href="http://www.google.de" class="button" style="position: absolute; top:0px; left:0px;"></a></p><p> <a href="http://www.google.de" class="button" style="position: absolute; top:25px; left:0px;"></a></p><p> <a href="http://www.google.de" class="button" style="position: absolute; top:50px; left:0px;"></a></p><p> <a href="http://www.google.de" class="button" style="position: absolute; top:75px; left:0px;"></a></p><p> <a href="http://www.google.de" class="button" style="position: absolute; top:100px; left:0px;"></a></p><p> </p><p></div><div id="content"></div><div id="footer"></div></body></html></p><p>[/CODE]</p><p>CSS:</p><p>[CODE]@charset "UTF-8";</p><p>/* CSS Document */</p><p></p><p>body,td,th {</p><p> font-family:"Lucida Sans Unicode", "Lucida Grande";</p><p> font-size: 14px;</p><p> color: #808080;</p><p>}</p><p></p><p>body {</p><p> margin-left: 0px;</p><p> margin-top: 0px;</p><p> margin-right: 0px;</p><p> margin-bottom: 0px;</p><p>}</p><p></p><p>a {</p><p> font-size: 14px;</p><p> color: #808080;</p><p>}</p><p>a:link {</p><p> text-decoration: none;</p><p>}</p><p>a:visited {</p><p> text-decoration: none;</p><p> color: #808080;</p><p>}</p><p>a:hover {</p><p> text-decoration: none;</p><p> color: #579caa;</p><p>}</p><p>a:active {</p><p> text-decoration: none;</p><p> color: #579caa;</p><p>}</p><p></p><p>h1 {font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;</p><p> font-size:24px;</p><p> font-style:normal;</p><p> color:#630;</p><p> font-weight: bold;</p><p>}</p><p></p><p>.button {</p><p> text-align:right;</p><p> position:absolute;</p><p> width:100%;</p><p> height:20px;</p><p> background-color:#FFF;</p><p> color:#c3c3c3;</p><p> font-size:10px;</p><p> text-indent: 10px;</p><p> display:block;</p><p> z-index:1;</p><p>}</p><p>a.button:link {</p><p> text-decoration: none;</p><p> background-color:#787878;</p><p> color:#FFF;</p><p>}</p><p>a.button:visited {</p><p> text-decoration: none;</p><p> background-color:#787878;</p><p> color:#FFF;</p><p>}</p><p>a.button:hover {</p><p> text-decoration: none;</p><p> background-color:#579caa;</p><p> color:#FFF;</p><p>}</p><p>a.button:active {</p><p> text-decoration: none;</p><p> background-color:#579caa;</p><p> color:#FFF;</p><p>}</p><p></p><p>.navi_type {</p><p> color:#000000;</p><p> text-decoration:none;</p><p> text-align:right;</p><p> font-size:10px;</p><p> position:absolute;</p><p> left:260px;</p><p> z-index:2;</p><p>}</p><p></p><p>.navi_type:link {</p><p> color:#000000;</p><p> text-decoration:none;</p><p>}</p><p></p><p>.navi_type:hover {</p><p> color:#000000;</p><p> text-decoration:none;</p><p>}</p><p></p><p>.navi_type:visited {</p><p> color:#000000;</p><p> text-decoration:none;</p><p>}</p><p></p><p>.navi_type:active {</p><p> color:#000000;</p><p> text-decoration:none;</p><p>}</p><p></p><p>#kopf {</p><p> position:absolute;</p><p> top:0px;</p><p> left:300px;</p><p> height:150px;</p><p> width:300px;</p><p> background-color:#999;</p><p> display:block;</p><p>}</p><p></p><p>#navi {</p><p> position:absolute;</p><p> top:180px;</p><p> left:0px;</p><p> height:500px;</p><p> width:100%;</p><p> z-index:1;</p><p>}</p><p></p><p>#content {</p><p> position:absolute;</p><p> top:180px;</p><p> left:300px;</p><p> height:500px;</p><p> width:300px;</p><p> background-color:#999;</p><p> display:block;</p><p> z-index:2;</p><p>}</p><p></p><p>#footer {</p><p> position:absolute;</p><p> top:550px;</p><p> left:300px;</p><p> height:150px;</p><p> width:300px;</p><p> background-color:#999;</p><p> display:block;</p><p>}[/CODE]</p><p></p><p>Hier hab ich die Schrift der Navigation über die Balken gelegt. Natürlich wird dann beim mouseover auf die Schrift der Balken nicht umgefärbt. Das würde ich gerne beheben und zusätzlich die Schrift dann rechtsbündig an dem Contentfenster ausrichten. </p><p></p><p>Ich hoffe, ihr könnt mir so einfacher helfen <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="sukitio, post: 1791609, member: 336746"] [b]AW: CSS: Navigationsbalkenüber komplette Breite[/b] OK, dann hab ich das mit dem Problem zeigen falsch verstanden, sorry dafür. Hier dann mal der bisherige Code: HTML [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>erste page mit css</title> <link href="style.css" type="text/css" rel="stylesheet"> </head> <body> <div id="kopf"></div> <div id="navi"> c<a href="http://www.google.de" class="navi_type" style="position:absolute; top:5px;">home</a> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:30px;">gallerie 1</a> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:55px;">gallerie 2</a> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:80px;">vita</a> <a href="http://www.google.de" class="navi_type" style="position:absolute; top:105px;">kontakt</a> <a href="http://www.google.de" class="button" style="position: absolute; top:0px; left:0px;"></a> <a href="http://www.google.de" class="button" style="position: absolute; top:25px; left:0px;"></a> <a href="http://www.google.de" class="button" style="position: absolute; top:50px; left:0px;"></a> <a href="http://www.google.de" class="button" style="position: absolute; top:75px; left:0px;"></a> <a href="http://www.google.de" class="button" style="position: absolute; top:100px; left:0px;"></a> </div><div id="content"></div><div id="footer"></div></body></html> [/CODE] CSS: [CODE]@charset "UTF-8"; /* CSS Document */ body,td,th { font-family:"Lucida Sans Unicode", "Lucida Grande"; font-size: 14px; color: #808080; } body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } a { font-size: 14px; color: #808080; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #808080; } a:hover { text-decoration: none; color: #579caa; } a:active { text-decoration: none; color: #579caa; } h1 {font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size:24px; font-style:normal; color:#630; font-weight: bold; } .button { text-align:right; position:absolute; width:100%; height:20px; background-color:#FFF; color:#c3c3c3; font-size:10px; text-indent: 10px; display:block; z-index:1; } a.button:link { text-decoration: none; background-color:#787878; color:#FFF; } a.button:visited { text-decoration: none; background-color:#787878; color:#FFF; } a.button:hover { text-decoration: none; background-color:#579caa; color:#FFF; } a.button:active { text-decoration: none; background-color:#579caa; color:#FFF; } .navi_type { color:#000000; text-decoration:none; text-align:right; font-size:10px; position:absolute; left:260px; z-index:2; } .navi_type:link { color:#000000; text-decoration:none; } .navi_type:hover { color:#000000; text-decoration:none; } .navi_type:visited { color:#000000; text-decoration:none; } .navi_type:active { color:#000000; text-decoration:none; } #kopf { position:absolute; top:0px; left:300px; height:150px; width:300px; background-color:#999; display:block; } #navi { position:absolute; top:180px; left:0px; height:500px; width:100%; z-index:1; } #content { position:absolute; top:180px; left:300px; height:500px; width:300px; background-color:#999; display:block; z-index:2; } #footer { position:absolute; top:550px; left:300px; height:150px; width:300px; background-color:#999; display:block; }[/CODE] Hier hab ich die Schrift der Navigation über die Balken gelegt. Natürlich wird dann beim mouseover auf die Schrift der Balken nicht umgefärbt. Das würde ich gerne beheben und zusätzlich die Schrift dann rechtsbündig an dem Contentfenster ausrichten. Ich hoffe, ihr könnt mir so einfacher helfen :) [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS: Navigationsbalkenüber komplette Breite
Oben