You need to sign in to do that
Don't have an account?
Jhon smit 10
External css is not working in my lightning web component
Hii,
I have have demo lwc component named as DemoLwc
and i have create a new css file in that component called main.css.
But the problem is that it is not working.
can anyone help me how i will use my css file file in that component.
I have have demo lwc component named as DemoLwc
and i have create a new css file in that component called main.css.
But the problem is that it is not working.
can anyone help me how i will use my css file file in that component.
Rename Your Css File With the Word like In Line Written Below Please Mark it As best Answer if it Helps
Thank You!
All Answers
Rename Your Css File With the Word like In Line Written Below Please Mark it As best Answer if it Helps
Thank You!
You have to use the filename as yourComponentName.css
For example, your component name is TestComponent, your CSS file name must be TestComponent.css then it will be working.
if you having a problem then Ask me
Please mark Best Answer If Your Problem Is Solved
thanks, Regards,
Malika Pathak