ERLEDIGT
JA
JA
ANTWORTEN
4
4
ZUGRIFFE
6046
6046
EMPFEHLEN
-
11.02.08 15:02 #1
- Registriert seit
- Feb 2002
- Ort
- Berlin
- Beiträge
- 182
Hallo, ich habe folgenden HTML-Code:
mit dazugehörigem CSS-Code:HTML-Code:<div id="left"> <ul id="sublist"> <li><a href="#">Punkt 1</a></li> <li><a href="#">Punkt 2</a></li> <li><a href="#">Punkt 3</a></li> </ul> </div>
#left {
float: left;
min-height: 500px;
width: 200px;
color:#000;
border-right: 1px solid #B8C8DB;
border: 1px solid #000;
padding: 10px;
}
#sublist li {
list-style-image: url(img/subpfeil.gif);
list-style-position: outside;
margin-left: 20px;
}
#sublist li a {
display: block;
text-decoration: none;
font-size: 1em;
padding: 5px 0;
border-bottom: 1px solid #B8C8DB;
width: 200px;
color: #325A8C;
}
#sublist li a:hover {
text-decoration: none;
color: #A50E0E;
border-bottom: 1px solid #A50E0E;
}
Schaut Euch mal bitte den Anhang an. Hat jemand ne Idee, wie ich dies umsetze? Vielen Dank!
-
11.02.08 15:42 #2Maik Tutorials.de Gastzugang
Hi,
versuch es mal mit diesem Stylesheet:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#sublist { margin:0; padding:0; } #sublist li { list-style-image: url(img/subpfeil.gif); list-style-position: outside; } #sublist li a { display: block; text-decoration: none; font-size: 1em; padding: 5px 0 5px 20px; border-bottom: 1px solid #B8C8DB; width: 180px; color: #325A8C; } #sublist li a:hover { text-decoration: none; color: #A50E0E; border-bottom: 1px solid #A50E0E; }
-
11.02.08 15:55 #3
- Registriert seit
- Feb 2002
- Ort
- Berlin
- Beiträge
- 182
Danke, aber leider fügt er zwischen dem Listenzeichen, also dem Pfeil, und dem Text nur ne größere Lücke ein... "border-bottom" wird gesetzt, aber die Pfeile werden einfach nach links rausgeschoben. Haste noch ne andere Idee?
-
11.02.08 16:00 #4Maik Tutorials.de GastzugangCode :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#sublist { margin:0; padding:0; [B]list-style:none;[/B] } #sublist li { [B]/*list-style-image: url(img/subpfeil.gif);*/[/B] list-style-position: outside; } #sublist li a { display: block; text-decoration: none; font-size: 1em; padding: 5px 0 5px 20px; border-bottom: 1px solid #B8C8DB; width: 180px; color: #325A8C; [B]background:url(img/subpfeil.gif) no-repeat left center;[/B] }
-
11.02.08 16:12 #5
- Registriert seit
- Feb 2002
- Ort
- Berlin
- Beiträge
- 182
Klasse, so funktioniert es! Besten Dank für die schnelle Hilfe
Ähnliche Themen
-
[Joomla 1.5] style="xhtml" statt "table" wird ignoriert
Von Schlafor im Forum Content Management Systeme (CMS)Antworten: 9Letzter Beitrag: 13.08.10, 15:44 -
IE reagiert nicht auf: document.getElementById("myID").style.position = 'fixed';
Von soezkan im Forum Javascript & AjaxAntworten: 5Letzter Beitrag: 08.07.10, 12:12 -
HTML: style="position: absolute;..."
Von kfust im Forum CSSAntworten: 1Letzter Beitrag: 01.04.09, 16:07 -
Überschreibt style="" class="" ?
Von rethus im Forum CSSAntworten: 17Letzter Beitrag: 12.09.08, 17:06 -
Probleme mit Bildern für "list-style" im IE
Von Zolu im Forum CSSAntworten: 4Letzter Beitrag: 09.11.07, 14:30





Login




