C
C
Cheizer2019-10-23 17:32:10
css
Cheizer, 2019-10-23 17:32:10

How to control the size of an SVG mask?

Friends, I am very poorly versed in SVG. Help me figure out how to control the size of this SVG with a mask?
Here is the live code https://codepen.io/Cheizer/pen/xxKvyzb
SVG size is specified with border

width:170px; 
  height:125px;

But the actual size is smaller :( how to control the size?
And how to change the size of the circle element at the corners? If it is possible to control these sizes in CSS, it would be great.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anna_BS, 2019-10-23
@Cheizer

viewBox="0 0 10 6.7" - defines a custom viewport - if you have a width of 170, then the height should be ~114, but it's better to avoid non-integer values
; you can try changing the size of the circle through stroke-width: 1px;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question