- object.svg
- style.css
SVG
<svg width="300" height="400">
<polyline points="40,150 150,40 260,150" fill="none" stroke-width="40" stroke="tomato" stroke-linejoin="miter"></polyline>
<polyline points="40,260 150,150 260,260" fill="none" stroke-width="40" stroke="gold"></polyline>
<polyline class="shape-linejoin" points="40,370 150,260 260,370" fill="none" stroke-width="40" stroke="lightseagreen"></polyline>
</svg>
CSS
svg {
border: 1px solid #dddddd;
}
You’ve gone to a different page
Goalscompleted
0
- Assign the attribute
stroke-linejoin="round"
to the second line. - On the third line of the CSS file, set the property
stroke-linejoin
to the valuebevel
.
Comments