R
R
Russland Russland2016-10-18 19:10:54
Sprites
Russland Russland, 2016-10-18 19:10:54

SVG sprite: cut off the edges of the icon. How to fix?

Good afternoon!
In a new project, I needed to use an svg sprite. I collect the sprite using gulp-svg-sprite , and assign it using css through the background property. Faced such a problem: icons are cut off at the edges when changing the width of the browser window. For example:
at 548px width the icons are displayed correctly
4Akox8BTMd4KBA.jpg
and at 640px the middle icon is cut off
e0e3b825af.jpg
How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktoriya Bilyk, 2016-12-19
@ruslanshakir

try layout set diagonal
https://github.com/jkphl/svg-sprite/blob/master/do...
here it is written in a nutshell that browsers can perceive
modx.ws/svg-sprites-gulp sizes differently -sass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question