1

So, I have a little list of <li> elements with height like 60.78px, and parent <ul> element takes exact 60px height, that causes child element to overflow.

However, if <div> have fractional height, parent <div> element will have right height.

What should I do to fix <ul> element height to fractional?

KazeZlat
  • 11
  • 1

1 Answers1

0

In this post there's a very nice explanation as to what happens to decimal pixel values.

Community
  • 1
  • 1
Mike Donkers
  • 3,589
  • 2
  • 21
  • 34
  • it is not about displaying, it is about wrong calculating, where child element is bigger than its parent somehow – KazeZlat Oct 16 '15 at 17:15