Say you have a line in SVG:
You can use the stroke-dasharray
property in CSS to make dashes:
line {
stroke-dasharray: 5;
}
That 5
value is a relative unit based …
How stroke-dasharray Patterns Work originally published on CSS-Tricks. You should get the newsletter.
Login to add comment
Other posts in this group
I was reading through Juan’s recent Almanac entry for the @counter-style
at-rule and I’ll be darned if he didn’t uncover and unpack some extremely interesting things
Chris wrote about “Likes” pages a long while back. The idea is rather simple: “Like” an item in your RSS reader and dis
(This is a sponsored post.)
It’s probably no surprise to you that CSS-Tricks is (proudly) hosted on
Today, I want to look into one of those cases of impatient and how the community has waited for that feature, to be specific, two upcoming functions: sibling-count() and sibling-index().
I wrote a post for Smashing Magazine that was published today ab