Skip to content

Instantly share code, notes, and snippets.

@iamvdo
Created January 3, 2012 16:41
Show Gist options
  • Save iamvdo/1555696 to your computer and use it in GitHub Desktop.
Save iamvdo/1555696 to your computer and use it in GitHub Desktop.
CSS et SVG
/*
* CSS et SVG
*/
svg{
fill: gray;
}
rect{
fill: red;
stroke: black;
stroke-width: 10px;
/*-webkit-transform:rotate(45deg);*/
}
rect#rot{
-webkit-transform:rotate(45deg);
}
polygon{
fill:lime;
stroke: green;
stroke-width:10px;
stroke-linejoin: miter;/*bevel,round*/
stroke-dasharray:15,10;
}
<div>
<svg width="1200" height="800">
<rect x="50" y="50" height="500" width="500"></rect>
<rect id="rot" x="250" y="0" height="500" width="500"></rect>
<polygon points="700,50 1000,600 400,600"/>
</svg>
</div>
{"view":"split-vertical","seethrough":"","prefixfree":"","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment