Hello there, ladies and gentlemen!

I got a question regarding inline anchors/links.




While vertical space is added to anchors through line-height, only padding can 
add to the clickable area.
Shouldn't the clickable area also expand depending on line-height? Even on 
inline elements.

On display: block or inline-block, the line-height is added to the clickable 
area of the link.




Do you guys know, where in the w3c specs this behavior is documented?



See examples here:


http://codepen.io/MartinMuzatko/pen/FJLDw


Even though block/inline-block solves the "problem", I am really curious why it 
was decided, that the line-height is working, but only around the link.
I feel like I found another layer of the Boxmodel.


Thank you in advance!


Cheers,
-Martin

                                          
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to