Ingo Turski: Automatisch Zeichen oder Grafik anfügen

Beitrag lesen

Hi,

Das CSS dazu sieht folgendermaßen aus und die Idee entstammt dem YAML-Framework:

#col3 a[href^="http:"], #col3 a[href^="https:"],
#col1 p a[href^="http:"], #col1 p a[href^="https:"],
#col2 p a[href^="http:"], #col2 p a[href^="https:"]
{
padding-left: 12px;
background-image: url('../img/ext_link.gif');
background-repeat: no-repeat;
background-position: left;
}

  
warum nicht einfach:  
~~~css
  
a[href^="http"]:before {  
  content:url('../img/ext_link.gif');  
}  

freundliche Grüße
Ingo