Forum Discussion
Sharepointadim207
Jan 06, 2024Copper Contributor
Script editor
I am using the script editor to to create a custom button on my sharepoint page. The button works as intended but if i change my background to anything but white I can see the rest of the webpart, r...
MMRevevol
Sep 27, 2024Copper Contributor
Hi,
I am jumping on this comment because I am looking for a solution for a similar use case but my issue is different. I am trying to create a simple button but I cannot figure out where to store the css file and make sure it is taken into account in the html code. I tried adding the .css file in the site asset, but this is not working. I tried to write it directly in the script editor but that does not work either.
Where is supposed to be stored the css code?
Thank you in advance for your help, I am really a beginner at this!
I am jumping on this comment because I am looking for a solution for a similar use case but my issue is different. I am trying to create a simple button but I cannot figure out where to store the css file and make sure it is taken into account in the html code. I tried adding the .css file in the site asset, but this is not working. I tried to write it directly in the script editor but that does not work either.
Where is supposed to be stored the css code?
Thank you in advance for your help, I am really a beginner at this!
- Sharepointadim207Sep 27, 2024Copper Contributor
In my experience you need to store the file in a document library. Once you have it stored find the file and go to Details > file path.
Copy the file path, and you'll need to reference that within your HTML.