{"id":236635,"date":"2016-01-12T12:55:24","date_gmt":"2016-01-12T19:55:24","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=236635"},"modified":"2016-01-22T17:45:37","modified_gmt":"2016-01-23T00:45:37","slug":"stroke","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/s\/stroke\/","title":{"rendered":"stroke"},"content":{"rendered":"
The Remember:<\/p>\n The Awesomely enough, See the Pen stroke property<\/a> by CSS-Tricks (@css-tricks<\/a>) on CodePen<\/a>.<\/p>\n 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;” … \/> Values The stroke property can accept any CSS color value. Named colors \u2014 […]<\/p>\n","protected":false},"author":2508,"featured_media":0,"parent":13947,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-almanac-single.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":236513,"url":"https:\/\/css-tricks.com\/almanac\/properties\/f\/fill\/","url_meta":{"origin":236635,"position":0},"title":"fill","date":"January 7, 2016","format":false,"excerpt":"The fill property in CSS is for filling in the color of a SVG shape. .eyeball { fill: red; } Remember: This will override a presentation attribute This will not override an inline style e.g. Values The fill property can accept any CSS color value. Named colors \u2014 orange Hex\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14029,"url":"https:\/\/css-tricks.com\/almanac\/properties\/c\/color\/","url_meta":{"origin":236635,"position":1},"title":"color","date":"September 5, 2011","format":false,"excerpt":"The color property in CSS sets the color of text and text decorations. p { color: blue; } Values The color property can accept any CSS color value. Named colors: for example, \"aqua\". Hex colors: for example, #00FFFF or #0FF. RGB and RGBa colors: for example, rgb(0, 255, 255) and\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14117,"url":"https:\/\/css-tricks.com\/almanac\/properties\/t\/text-stroke\/","url_meta":{"origin":236635,"position":2},"title":"text-stroke","date":"September 6, 2011","format":false,"excerpt":"text-stroke is an experimental property that provides text decoration options similar to those found in Adobe Illustrator or other vector drawing applications. It is not currently included in any W3C or WHATWG specification. As of June 2013, it is only implemented behind a -webkit vendor prefix, though future versions of\u2026","rel":"","context":"With 5 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":236642,"url":"https:\/\/css-tricks.com\/almanac\/properties\/s\/stroke-linecap\/","url_meta":{"origin":236635,"position":3},"title":"stroke-linecap","date":"January 12, 2016","format":false,"excerpt":"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 This will not override an inline style e.g. Values The stroke-linecap property can accept the following values: butt (default):\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":236637,"url":"https:\/\/css-tricks.com\/almanac\/properties\/s\/stroke-width\/","url_meta":{"origin":236635,"position":4},"title":"stroke-width","date":"January 12, 2016","format":false,"excerpt":"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 This will not override an inline style e.g. Values The stroke-width property can accept any number, including whole numbers, decimals, and percentages:\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":236664,"url":"https:\/\/css-tricks.com\/almanac\/properties\/s\/stroke-dashoffset\/","url_meta":{"origin":236635,"position":5},"title":"stroke-dashoffset","date":"January 12, 2016","format":false,"excerpt":"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 will override a presentation attribute This will not override an\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/236635"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/2508"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=236635"}],"version-history":[{"count":10,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/236635\/revisions"}],"predecessor-version":[{"id":237183,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/236635\/revisions\/237183"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13947"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=236635"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=236635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}stroke<\/code> property in CSS is for adding a border to SVG shapes. <\/p>\n
.module {\r\n stroke: black;\r\n}<\/code><\/pre>\n
\n
<path stroke=\"#fff\" ... \/><\/code><\/li>\n
<path style=\"stroke: #fff;\" ... \/><\/code><\/li>\n<\/ul>\n
Values<\/h3>\n
stroke<\/code> property can accept any CSS color value.<\/p>\n
\n
orange<\/code><\/li>\n
#FF9E2C<\/code><\/li>\n
rgb(255, 158, 44) and rgba(255, 158, 44, .5)<\/code><\/li>\n
hsl(32, 100%, 59%) and hsla(32, 100%, 59%, .5)<\/code><\/li>\n<\/ul>\n
stroke<\/code> also accepts the patterns of SVG shapes that are defined inside of a
defs<\/code> element:<\/p>\n
.module {\r\n\tstroke: url(#pattern);\r\n}<\/code><\/pre>\n
Related<\/h3>\n
\n
fill<\/code><\/a><\/li>\n
stroke-dasharray<\/code><\/a><\/li>\n
stroke-dashoffset<\/code><\/a><\/li>\n
stroke-linecap<\/code><\/a><\/li>\n
stroke-width<\/code><\/a><\/li>\n<\/ul>\n
More Information<\/h3>\n
\n
Browser Support<\/h3>\n
\n\n
\n Chrome<\/span><\/th>\n Safari<\/span><\/th>\n Firefox<\/span><\/th>\n Opera<\/span><\/th>\n IE<\/span><\/th>\n Android<\/span><\/th>\n iOS<\/span><\/th>\n<\/tr>\n<\/thead>\n\n \n Yes<\/td>\n Yes<\/td>\n Yes<\/td>\n Yes<\/td>\n 9+<\/td>\n 4.4+<\/td>\n Yes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"