Christoph: padding-bottom bei Inline-Elementen

Beitrag lesen

Hallo.

Zwar nicht wirklich elegant, aber man könnte ein weiteres Element zur Formatierung hinzufügen...
In etwa so (nicht getestet):

  
<style type="text/css">  
 a { background: red; }  
 a span { background: inherit; position: relative; bottom: 3px; }  
</style>  
  
<p>  
 Hallo - dies ist<br>  
 ein <a href="#"><span>mehrzeiliger</span></a> Test.<br>  
 Ist es das, was du willst?  
</p>  

Christoph