I have been working on my website and I'm having trouble with setting the css of my background.
This is the code that i have right now. Im trying to use only jquery and not a css file.
$('<div id="klanbot_config">').css({
position: "absolute",
left: 792,
top: -7,
width: 199,
height: 545,
border: "3px gold solid",
color: "white",
"font-size": "10px",
}).appendTo("#centerbox2");
I tried doing background: url('https://i.sstatic.net/qQQgp.jpg'), but that did not work.
"font-size"can be substituted withfontSize, and the comma after"10px"can go too if you are interested in micromanaging your code.