T
T
Top_Pudge2017-08-12 11:41:37
css
Top_Pudge, 2017-08-12 11:41:37

How to embed svg, img or background-imgae correctly?

You need to insert svg. The svg of the image is not the size I want. If you insert through img, then you will need to change about 40 icons in the illustrator, but then I can write alt text, which will help search robots understand what kind of picture it is, if you insert through background , you can set cover and not change all the icons, but I I don't know how to write alt in this case. Inline, in theory, will also fail to insert.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cssfish, 2017-08-12
@Top_Pudge

svg images have no size, they are vector. you can insert a regular img (if it's not a sprite for you) and set the desired size for it through attributes or css. and the width is enough, it will scale the height itself
<img src="img.svg" width="500" alt="ololo">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question