A
A
A person from Kazakhstan2016-06-25 16:43:28
css
A person from Kazakhstan, 2016-06-25 16:43:28

How to make distance between points in svg at 100% screen?

<svg width="100%" height="300px" style="background:yellow;">
  
  <polygon 
points=" 0 100, 0 0, 910 0, 910 100,440 160" 
style="fill: yellow; fill-opacity:1; stroke:red; stroke-width:3px;" /> 
  
</svg>

Let's say if you do this, then the distance between the points is fixed, but how to make them from 0 left to 0 right?
This is an example codepen.io/Geyan/pen/PzWEMo?editors=110

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2015-11-28
@bingo347

htmlbook.ru/css3-na-primerakh/lineinyi-gradient

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question