- object.svg
- style.css
SVG
<svg width="300" height="150">
<circle r="60" cx="75" cy="50%"></circle>
<circle r="60" cx="150" cy="50%"></circle>
<circle class="shape-fill" r="60" cx="225" cy="50%"></circle>
</svg>
CSS
svg {
border: 1px solid #dddddd;
}
.shape-fill {
}
You’ve gone to a different page
Goalscompleted
0
- Specify a fill for the first shape with an attribute in the HEX format:
fill="#ff7700"
. - And assign an attribute in the HSLA format for the second shape:
fill="hsla(50, 100%, 50%, 0.75)"
. - For the third shape, assign a fill by specifying the name of the color
fill: yellowgreen
in the CSS editor.
Comments