D
D
Denis Bukreev2016-10-25 15:14:35
css
Denis Bukreev, 2016-10-25 15:14:35

How to define element property for individual browser?

So it goes.
All browsers clumsily display some svg. Everything except FF.
What is the ugliness? The fact that the svg may have the viewbox specified incorrectly (does not match the size of the SVG itself) and in most browsers there are spaces above and below or on the right and left, depending on which side is smaller.
And then a thick bug comes out - for all browsers I set positioning and negative top / left to align SVG, and FF normally displays SVG and the icon, due to positioning, shifts to the side.
What to do in this case? How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bukreev, 2016-10-25
@denisbookreev

I remembered that I have the best SVG editor - Sketch (windows in flight).
I opened it in it, exported it, and it normally cropped and set the required dimensions for the icon.
Profit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question