2012-11-24 21 views
7

Bir başlık içinde bir çapa etiketim var ve çapa etiketine bir kenar tabanı yerleştirmeye çalışıyorum, ancak alt kısımdaki dolgu çok büyük ve negatif bir dolgu alışkanlık yaratmıyor iş, bu konuda nasıl geçebilirim?Bir bağlantı etiketinde kenarlık alt dolgusu

canlı site

html

<div id="featureText"> 
     <h1>Recent Works/<a href="#">All</a></h1> 
    </div> 

css

#featureText a { 
    color: #414042; 
    text-decoration: none; 
    border-bottom: solid 2px #414042; 
    padding-bottom: -2px; } 

cevap

8
#featureText a { 
    line-height: 1em; 
    display: inline-block; 
    color: #414042; 
    text-decoration: none; 
    border-bottom: solid 2px #414042; 
    padding: 0; 
} 
5

Ben öneririm:

#featureText h1 a { 
    /* all your other CSS... */ 
    display: inline-block; 
    line-height: 1em; 
} 
İlgili konular