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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -