V
V
vasIvas2015-11-02 18:24:03
css
vasIvas, 2015-11-02 18:24:03

Why are extra pixels added to text height?

There is a regular ul - div.container>ul.nav>li.nav-link-container*4>a[#]{some link $}
And there is a style -

html{font-size: 16px;}
* {margin: 0;padding: 0; border: 0;}
a {text-decoration: none; color: #232;}
ul {list-style: none;}

In the browser I measure the text size and it is 19px. Why and how to fix?
Here is an example on codepen. In FF it shows 19px.. codepen.io/anon/pen/zvLBEL?editors=110
5a8008ff1085417e81cac85b875a231a.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivanq, 2015-11-02
@vasIvas

2b8d247544ec43f7b9ac4f063e725f14.png
line-height: 16px;
3ed4933210944f7abe4dcb7bc7b4e6b6.png

L
L0k1, 2015-11-02
@L0k1

line-height ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question