Skip to main content
formatting
Source Link
nbrown
  • 4.1k
  • 2
  • 22
  • 46

youYou could store the image in a static resource, and in the cssCSS file of the lwcLightning web component you could use the below mentioned syntax.

background-image: url('/resource/static_resource_name');

background-image: url('/resource/static_resource_name');

you could store the image in a static resource, and in the css file of the lwc component you could use the below mentioned syntax.

background-image: url('/resource/static_resource_name');

You could store the image in a static resource, and in the CSS file of the Lightning web component you could use the below mentioned syntax.

background-image: url('/resource/static_resource_name');
Source Link
Rahul
  • 11
  • 1

you could store the image in a static resource, and in the css file of the lwc component you could use the below mentioned syntax.

background-image: url('/resource/static_resource_name');