A
A
Alexchexes2020-01-22 22:51:32
css
Alexchexes, 2020-01-22 22:51:32

Why does the browser itself draw an indent on SVG?

The code:

The result in two browsers - you can see that the indentation from the bottom of the oval is different, it needs to be removed completely - that is, the SVG is perfectly aligned to the bottom of the parent block.
5e28a79f5d71c153120773.png
It is clear that I can remove some pixels in this case through bottom: -10px;or draw a full ellipse and cut off half (but actually a little less) through overflow: hidden;but this does not solve the root of the problem, these are crutches ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lamer350, 2020-01-22
@Alexchexes

Add just SVG style vertical-align:bottom to css

.ball svg{
  vertical-align:bottom;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question