I'm using the HTML website builder and trying to add a custom HTML element with a custom css class, but it doesn't seem to be working for me. I'm very new to css, so it very well could be user error. In my website, if I drop in the following custom HTML code, I successfully get a button with red text:
<button style="color:#FF0000">Red button</button>
However, if I drop this code in, I don't get a red button:
<style>
.custombuttonstyle {
color: #FF0000;
}
</style>
<button class="custombuttonstyle">Red Button</button>
Better yet, I'd like to be able to just add the class to the page's CSS via the "Edit CSS" button instead of having to put in the Internal CSS "Style" section. But I'll settle for Internal CSS over Inline CSS.
I'm using the HTML website builder and trying to add a custom HTML element with a custom css class, but it doesn't seem to be working for me. I'm very new to css, so it very well could be user error. In my website, if I drop in the following custom HTML code, I successfully get a button with red text: <button style="color:#FF0000">Red button</button> However, if I drop this code in, I don't get a red button: <style> .custombuttonstyle { color: #FF0000; } </style> <button class="custombuttonstyle">Red Button</button> Better yet, I'd like to be able to just add the class to the page's CSS via the "Edit CSS" button instead of having to put in the Internal CSS "Style" section. But I'll settle for Internal CSS over Inline CSS.Last edited 04 July 2022 by destate