Padding vs. line-height in styling anchor

davrooo

New Member
are there any rules/advice when to use padding-top/bottom instead of fixed height and vertical centering with line-height in css styling element ?What is better/more universal solution (from any perspective)?This\[code\]a { padding: 0 15px; height: 40px; line-height: 40px;}\[/code\]or this\[code\]a { padding: 10px 15px;}\[/code\]Demo here.Thank you for your experience
 
Back
Top