hey everyone , i have the code for an outline button with a notch exactly how i would want it displayed on my site now it wont show can someone review this please?
heres the code
const button = document.createElement("button");
button.innerHTML = "Order Now";
button.style.cssText = "outline: none; padding: 10px 15px; position: relative; color: white; text-decoration: none;";
const notch = document.createElement("div");
notch.style.cssText = "border-top: 10px solid transparent; border-right: 10px solid white; border-bottom: 10px solid transparent; position: absolute; top: 0; right: 0;";
button.appendChild(notch);
button.addEventListener("mouseenter", function() {
button.style.outlineColor = "#4FFF00";
button.style.color = "#4FFF00";
});
button.addEventListener("mouseleave", function() {
button.style.outlineColor = "white";
button.style.color = "white";
});
const main = document.querySelector("#main");
button.setAttribute("href", "#anchor");
main.appendChild(button);