+ 2

why is this model (style=fill:green) used when something like (fill= "green") still performs the same function.

3rd Jul 2016, 7:42 PM
Dan-Awoh Emmanuel
Dan-Awoh Emmanuel - avatar
4 odpowiedzi
+ 3
It's not more complicated. It's just CSS. Actually, using stylesheets can save you time if you set a certain style to a large group of elements. But then you have to move styles to an area called <defs>, not inline as SoloLearn does it. Note: not all attributes can be set via CSS.
4th Jul 2016, 3:45 AM
ZinC
ZinC - avatar
+ 2
the context is in the coloring of the svg images. both codes can produce the sane result. but solo learn decided to use the former in their example. the style:fill green is more complicated. so why not just use the simpler one. fill="green". I tried it and it still works.
3rd Jul 2016, 11:46 PM
Dan-Awoh Emmanuel
Dan-Awoh Emmanuel - avatar
+ 1
what?
3rd Jul 2016, 11:17 PM
Farshad Nematpour
Farshad Nematpour - avatar
+ 1
In what context?
3rd Jul 2016, 11:32 PM
ZinC
ZinC - avatar