Problem mit background-image: no-repeat

Problem mit background-image: no-repeat

Beitragvon hanskanns » 18.04.2010, 11:11

Hallo Leute,

ich habe eine Liste erstellt und habe eine eigene Bullet-Grafik verwendet.
Die Hintergrundgrafik habe ich als backgroud-image für den <li>-Tag definiert.
Wenn ich nun in die CSS-Datei ein no-repeat reinschreibe, so ist mein Bild nicht mehr zu sehen.

Hier meine CSS-Datei:
Code: Alles auswählen
#content {
      float: right;
      width: 973px;
      padding: 10px 10px 10px 0px;
   }
      
      #content a {
         text-decoration:underline;
      }
      
      #content #latest ul {
         list-style-type: none;
      }
      
      #content #latest ul li {
         line-height: 40px;
         background-image: url(pfeil.png) no-repeat;
                        padding-left:20px;

         
      }
hanskanns
neu hier
 
Beiträge: 1
Registriert: 18.04.2010, 11:07

Re: Problem mit background-image: no-repeat

Beitragvon Azra » 22.04.2010, 06:59

Das Bild ist als Hintergrund drin, das heisst es nimmt keinen Platz ein.
Um das Bild zu sehen musst du height & width definieren.
“HTML is the language for describing the structure of Web pages.”
“CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts.”
Noch weitere Probleme? Kontakt über meine Webseite - simonduda.ch
Benutzeravatar
Azra
Stammuser
 
Beiträge: 422
Registriert: 04.02.2010, 08:36
Wohnort: (Alten)bochum


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "Problem mit background-image: no-repeat"

Zurück zu: CSS für Anfänger

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste

cron