2Danke
ERLEDIGT
JA
JA
ANTWORTEN
11
11
ZUGRIFFE
921
921
EMPFEHLEN
-
05.02.08 14:08 #1
Hallo,
ich habe ein Problem mit einer Leerzeile, die ohne mein Willen mit eingefügt wird.
Meine Frage: Wie verhindere ich dort (Bild im Anhang) eine Leerzeile?HTML-Code:<HTML> <HEAD> <TITLE>frame links</TITLE> <style> div {text-indent: 30px;} </style> </HEAD> <BODY BGCOLOR="#ffffff" BACKGROUND="../pics_sys/backgr1.jpg"> <p> <a class="typ2" href="hp_fs1.htm" target="hframeset">Über uns</a><br> Produkte <div><a class="typ1" href="hp_fs2.htm" target="hframeset">OP-Licht</a><br></div> <div><a class="typ1" href="hp_fs3.htm" target="hframeset">OP-Tische</a><br></div> <div><a class="typ1" href="hp_fs4.htm" target="hframeset">Telemedizin</a><br></div> <div><a class="typ1" href="Test.htm" target="hframeset">Supersuite</a><br></div> <div><a class="typ1" href="Test.htm" target="hframeset">Stative</a></div> <a class="typ1" href="hp_fs5.htm" target="hframeset">Presse-Neuheiten</a><br> <a class="typ1" href="hp_fs6.htm" target="hframeset">Events</a><br> <a class="typ1" href="hp_fs7.htm" target="hframeset">Service</a><br> <a class="typ1" href="hp_fs10.htm" target="hframeset">Ausbildung</a><br> <a class="typ1" href="hp_fs11.htm" target="hframeset">Stellenangebote</a><br> <a class="typ1" href="hp_fs12.htm" target="hframeset">AGB und BEB</a><br> <a class="typ1" href="hp_fs13.htm" target="hframeset">Kontakt</a><br> <a class="typ1" href="hp_fs14.htm" target="hframeset">Impressum</a> </p> </BODY> </HTML>
"... Jeder von uns ist Kunst... gezeichnet vom Leben" (Casper)
"Sir?, we're sorrounded!"
"Excellent, we can attack in any direction"
-
Verwende lieber eine Liste, beispielsweise:
Die kannst du dann immer noch mit CSS formatieren.HTML-Code:<ul> <li><a href="hp_fs1.htm" target="hframeset">Über uns</a></li> <li>Produkte<ul> <li><a href="hp_fs2.htm" target="hframeset">OP-Licht</a></li> <li><a href="hp_fs3.htm" target="hframeset">OP-Tische</a></li> <li><a href="hp_fs4.htm" target="hframeset">Telemedizin</a></li> <li><a href="Test.htm" target="hframeset">Supersuite</a></li> <li><a href="Test.htm" target="hframeset">Stative</a></li> </ul></li> <li><a href="hp_fs5.htm" target="hframeset">Presse-Neuheiten</a></li> <li><a href="hp_fs6.htm" target="hframeset">Events</a></li> <li><a href="hp_fs7.htm" target="hframeset">Service</a></li> <li><a href="hp_fs10.htm" target="hframeset">Ausbildung</a></li> <li><a href="hp_fs11.htm" target="hframeset">Stellenangebote</a></li> <li><a href="hp_fs12.htm" target="hframeset">AGB und BEB</a></li> <li><a href="hp_fs13.htm" target="hframeset">Kontakt</a></li> <li><a href="hp_fs14.htm" target="hframeset">Impressum</a></li> </ul>
Markus Wulftange
-
05.02.08 14:20 #3
Danke Gumbo, aber vieleicht hätte ich dazu sagen sollen, dass ich keine Liste mit dots verwenden soll (Kunden sind seltsam).
Es soll genau so aussehen wie auf dem Bild, nur ohne Leerzeile.
Hab es auch schon mit <span> versucht, dass selbe Ergebniss. Genauso wie mit text-algin:30px"... Jeder von uns ist Kunst... gezeichnet vom Leben" (Casper)
"Sir?, we're sorrounded!"
"Excellent, we can attack in any direction"
-
Dann verwende listen ohne Punkte

Code css:1 2 3
ul { list-style: none; }
Layna
PS: dann sollte auch dein Zeilenproblem verschwinden, oder zumidnest besser lösbar sein.====================
It isn't true unless it makes you laugh...
...but you don't understand untill makes you weep.
====================
Do what thou wilt shall be the whole of the law.
-
Dass die Inhalte als Liste ausgezeichnet sind, heißt nicht dass sie auch also solche dargestellt werden müssen. Dafür gibt es ja CSS.
Code :1 2 3 4 5 6 7 8
ul { list-style: none; margin: 0; padding: 0; } ul ul li { padding: 0 0 0 30px; }Markus Wulftange
-
05.02.08 15:04 #6
Klappt, bis auf ein kleines Problem noch. Und zwar ist jetzt alles etwas nach rechts gerückt. Wie bekomme ich dies wieder nach links?
HTML-Code:<p> <ul style="list-style:none; margin: 0, padding: 0;"> <li><a class="typ2" href="hp_fs1.htm" target="hframeset">Über uns</a></li> <li>Produkte</li> <ul style="list-style:none; margin: 30, padding: 0;"> <li><a class="typ1" href="hp_fs2.htm" target="hframeset">OP-Licht</a></li> <li><a class="typ1" href="hp_fs3.htm" target="hframeset">OP-Tische</a></li> <li><a class="typ1" href="hp_fs4.htm" target="hframeset">Telemedizin</a></li> <li><a class="typ1" href="Test.htm" target="hframeset">Supersuite</a></li> <li><a class="typ1" href="Test.htm" target="hframeset">Stative</a></li> </ul> <li><a class="typ1" href="hp_fs5.htm" target="hframeset">Presse-Neuheiten</a></li> <li><a class="typ1" href="hp_fs6.htm" target="hframeset">Events</a></li> <li><a class="typ1" href="hp_fs7.htm" target="hframeset">Service</a></li> <li><a class="typ1" href="hp_fs10.htm" target="hframeset">Ausbildung</a></li> <li><a class="typ1" href="hp_fs11.htm" target="hframeset">Stellenangebote</a></li> <li><a class="typ1" href="hp_fs12.htm" target="hframeset">AGB und BEB</a></li> <li><a class="typ1" href="hp_fs13.htm" target="hframeset">Kontakt</a></li> <li><a class="typ1" href="hp_fs14.htm" target="hframeset">Impressum</a></li> </ul> </p>
"... Jeder von uns ist Kunst... gezeichnet vom Leben" (Casper)
"Sir?, we're sorrounded!"
"Excellent, we can attack in any direction"
-
Die a-Elemente mit Klassen zu versehen, kannst du dir sparen. Weise lieber die gesamte Liste einer Klasse zu und passe die Selektoren darauf an. Beispielsweise:
HTML-Code:<ul class="nav"> <!-- … --> </ul>
Die darin enthaltenen a-Elemente kannst du dann ebenfalls so ansprechen:Code :1 2 3 4 5 6 7 8
ul.nav { list-style: none; margin: 0; padding: 0; } ul.nav ul li { padding: 0 0 0 30px; }Code :1 2 3
ul.nav a { /* … */ }Markus Wulftange
-
05.02.08 15:22 #8
Die Klassen kommen sowieso raus. Wichtig ist nur, dass es wieder "normal" links-ausgerichtet ist.
"... Jeder von uns ist Kunst... gezeichnet vom Leben" (Casper)
"Sir?, we're sorrounded!"
"Excellent, we can attack in any direction"
-
Du missverstehst Gumbo, glaube ich.
Die klasse nav und die CSS-definitionen müssen REIN damit es wieder nach Lnke geht
.
Layna====================
It isn't true unless it makes you laugh...
...but you don't understand untill makes you weep.
====================
Do what thou wilt shall be the whole of the law.
-
05.02.08 15:52 #10
Hat jetzt endlich geklappt, mit padding-left und einem Strichpunkt wo versehentlich nur ein Komma war
Danke an euch 2.HTML-Code:ul {list-style:none; margin: 0; padding: 0;} ul ul {list-style:none; padding-left: 25;}"... Jeder von uns ist Kunst... gezeichnet vom Leben" (Casper)
"Sir?, we're sorrounded!"
"Excellent, we can attack in any direction"
-
Beim padding-left-Wert fehlt noch die Einheit.
Markus Wulftange
-
05.02.08 16:03 #12
Oh, danke, hätte ich fast vergessen.
"... Jeder von uns ist Kunst... gezeichnet vom Leben" (Casper)
"Sir?, we're sorrounded!"
"Excellent, we can attack in any direction"
Ähnliche Themen
-
So soll es sein - chmee
Von chmee im Forum 2D/3D-Contest 2008 - "on the way"Antworten: 4Letzter Beitrag: 04.09.08, 19:05 -
Webcam - gut soll sie sein...
Von Die_gO im Forum Videoschnitt, Videotechnik & -produktionAntworten: 4Letzter Beitrag: 31.07.07, 17:16 -
Was ist CMS und was soll typo3 sein ?
Von Trasher im Forum PHPAntworten: 2Letzter Beitrag: 28.06.06, 02:54 -
wmplay - was soll das sein?
Von zeromancer im Forum Microsoft WindowsAntworten: 11Letzter Beitrag: 24.04.04, 20:05 -
WebAPP WCS & WAS, was soll das sein?
Von Flame im Forum Hosting & WebserverAntworten: 3Letzter Beitrag: 23.12.03, 06:37





Login





