tutorials.de Buch-Aktion 02/2012
ERLEDIGT
JA
ANTWORTEN
4
ZUGRIFFE
6046
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    Harzteufel Harzteufel ist offline Mitglied Gold
    Registriert seit
    Feb 2002
    Ort
    Berlin
    Beiträge
    182
    Hallo, ich habe folgenden HTML-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>
    mit dazugehörigem CSS-Code:

    #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!
    Miniaturansicht angehängter Grafiken Miniaturansicht angehängter Grafiken "list-style-image" und "list-style-position"-beispiel.gif  
     

  2. #2
    Maik 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;
    }
     

  3. #3
    Harzteufel Harzteufel ist offline Mitglied Gold
    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?
     

  4. #4
    Maik Tutorials.de Gastzugang
    Code :
    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]
    }
     

  5. #5
    Harzteufel Harzteufel ist offline Mitglied Gold
    Registriert seit
    Feb 2002
    Ort
    Berlin
    Beiträge
    182
    Klasse, so funktioniert es! Besten Dank für die schnelle Hilfe
     

Ähnliche Themen

  1. [Joomla 1.5] style="xhtml" statt "table" wird ignoriert
    Von Schlafor im Forum Content Management Systeme (CMS)
    Antworten: 9
    Letzter Beitrag: 13.08.10, 15:44
  2. Antworten: 5
    Letzter Beitrag: 08.07.10, 12:12
  3. HTML: style="position: absolute;..."
    Von kfust im Forum CSS
    Antworten: 1
    Letzter Beitrag: 01.04.09, 16:07
  4. Überschreibt style="" class="" ?
    Von rethus im Forum CSS
    Antworten: 17
    Letzter Beitrag: 12.09.08, 17:06
  5. Antworten: 4
    Letzter Beitrag: 09.11.07, 14:30