svg - Change in CSS the background-color for the first rect in my #ID -
i generate svg in gwt application , want modify first rect background-color inside svg in css.
here code:
<svg id="chart8" width="720" height="350" style="overflow: hidden;"> <defs id="defs">...</defs> <rect x="0" y="0" width="720" height="350" stroke="none" stroke-width="0" fill="#ffffff"> <g>...</g> <g><rect .../></g> <g>...</g> </svg>
so want modify in css fill value first rect element #chart8.
i tested it's not working:
#chart8 rect:first-of-type { fill: #f1f1f1;*/ }
have idea?
thanks!
Comments
Post a Comment