html - Why does font size impact the height of my <li> elements? -


basically, want able specify height of "li" element horizontal list i'm making. "line-height" , "height" have no impact on visible height of "li". thing changes height of "li" changing size of font used within "li". happens when "list-style" set "none".

what gives?

set li display: inline-block or float: left.

list-style determines bullets used list, , doesn't affect inner elements otherwise.


Comments