Skip to main content
The 2024 Developer Survey results are live! See the results
add example code
Source Link
Abhi Beckert
  • 33.3k
  • 12
  • 85
  • 112

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

For example:

<rect ... fill="#044B94" fill-opacity="0.4"/>

Additionally you have the following:

  • stroke-opacity attribute for the stroke
  • opacity for the entire object

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

Additionally you have the following:

  • stroke-opacity attribute for the stroke
  • opacity for the entire object

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

For example:

<rect ... fill="#044B94" fill-opacity="0.4"/>

Additionally you have the following:

  • stroke-opacity attribute for the stroke
  • opacity for the entire object
better formatting
Source Link
chris Frisina
  • 19.5k
  • 22
  • 89
  • 170

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

Additionally you have the stroke-opacity attribute for the stroke; and opacity for the entire object.following:

  • stroke-opacity attribute for the stroke
  • opacity for the entire object

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

Additionally you have the stroke-opacity attribute for the stroke; and opacity for the entire object.

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

Additionally you have the following:

  • stroke-opacity attribute for the stroke
  • opacity for the entire object
Source Link
Williham Totland
  • 28.8k
  • 6
  • 53
  • 68

You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 is completely transparent.

Additionally you have the stroke-opacity attribute for the stroke; and opacity for the entire object.