0

So I am working on a small website on Squarespace. I have a small HTML code that creates a spoiler button, that shows/hides the content in it after pressing the button.

I got that code from here: https://stackoverflow.com/a/46390304

But it looks extremely ugly on the site, is there any way I can change it's shape and color?

https://prnt.sc/rqchk1

https://prnt.sc/rqciro

Orion
  • 1
  • 1
    Hi Orion, what you are looking for is called CSS (Cascading StyleSheet). We can't answer you since it all depends on what you're looking for as a look but there are millions of pages on how to learn CSS. – VVV Mar 31 '20 at 18:29
  • What looks extremely ugly? The style of the button? – Andrew Reese Mar 31 '20 at 18:29
  • 1
    how do you want it to be changed? You could look here: https://www.w3schools.com/csS/css3_buttons.asp for styling buttons – coderHelper Mar 31 '20 at 18:29
  • 1
    Does this answer your question? [Can you style html form buttons with css?](https://stackoverflow.com/questions/14950238/can-you-style-html-form-buttons-with-css) – Heretic Monkey Mar 31 '20 at 18:31
  • AndrewReese Yes, the style of the button coderHelper Thank you, I will look into that :D – Orion Mar 31 '20 at 18:33
  • @HereticMonkey I don't think so. When putting code in the code block, I have to choose one of the following: https://prnt.sc/rqcqsg – Orion Mar 31 '20 at 18:37
  • And? Select CSS, and type the CSS. – Heretic Monkey Mar 31 '20 at 18:39
  • It sounds like you need a guide or tutorial. Please see [ask], [help/on-topic]. – AMC Mar 31 '20 at 22:43

1 Answers1

1

You can use the CSS Editor in SquareSpace to add CSS to HTML code.

There are more options in SquareSpace's support articles:

https://support.squarespace.com/hc/en-us/articles/206545567

Spider
  • 11
  • 3