A
A
AIIVY ⠀2020-03-09 16:59:50
css
AIIVY ⠀, 2020-03-09 16:59:50

How to change block from SVG to CSS?

Hey! I recently started developing a site and added link images there, but the last image has a block of almost half the screen. How to make it according to the size of the content in it 5e664bd0a341e536661894.gif?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xdevelx, 2020-03-09
@develx

Specify the width and height attributes. or
<img width="100" height="100">
<svg width="100" height="100">

F
frontend queen, 2020-03-09
@arka33

got into the code. you're centering the svg over margin-left: 41%;
that's not an option. wrap all links to social networks in a container, and already set the volume (0 - vertical, auto - horizontal) or using flexbox, examplemargin: 0 auto;

A
Arseny, 2020-03-09
Matytsyn @ArsenyMatytsyn

Read about SVG and how it works in principle. Here she has it well examined. If you use svg insertion via img, then you have a bagul of a different nature and you need raw materials for it, ideally with a link to give a specific answer. But most likely you don't have fixed sizes, and SVG doesn't like that very much.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question