stroke-dashoffset

The stroke-dashoffset property in CSS defines the location along an SVG path where the dash of a stroke will begin. The higher the number, the further along the path the dashes will begin.

.module {
  stroke-dashoffset: 100;
}

Remember:

  • This
Avatar of Geoff Graham
Geoff Graham on

stroke-linecap

The stroke-linecap property in CSS is for setting the starting and ending points of a border on SVG shapes.

.module {
  stroke-linecap: round;
}

Remember:

  • This will override a presentation attribute <path stroke-linecap="square" ... />
  • This will not override an
Avatar of Geoff Graham
Geoff Graham on

stroke-width

The stroke-width property in CSS is for setting the width of a border on SVG shapes.

.module {
  stroke-width: 2;
}

Remember:

  • This will override a presentation attribute <path stroke-width="2" ... />
  • This will not override an inline style e.g.
Avatar of Geoff Graham
Geoff Graham on (Updated on )

stroke

The stroke property in CSS is for adding a border to SVG shapes.

.module {
  stroke: black;
}

Remember:

  • This will override a presentation attribute <path stroke="#fff" ... />
  • This will not override an inline style e.g. <path style="stroke: #fff;"
Avatar of Geoff Graham
Geoff Graham on (Updated on )

The Sass Ampersand

The & is an extremely useful feature in Sass (and Less). It’s used when nesting. It can be a nice time-saver when you know how to use it, or a bit of a time-waster when you’re struggling and could …

Avatar of Richard Finelli
Richard Finelli on (Updated on )

Optimizing SVGs for Web Use

Direct Link

An in-depth series of posts by Andreas Larsen that walks us through the process of how to (hand) optimize SVGs. He suggests optimizations that it’s unlikely software could do for you. Things like changing the viewBox size to accommodate simple, …

Avatar of Robin Rendle
Shared by Robin Rendle on

Safari 9.1

Direct Link

There are lots of exciting new features rolling out in Safari 9.1 such as support for the picture element, enhancements to the web inspector, CSS variables and gesture events for iOS. Although, what I’m most excited for is the OpenType …

Avatar of Robin Rendle
Shared by Robin Rendle on