Hey guys. Haven't been here in a while, but I do remember you guys being pretty fantastic at programming especially website development. Mind helping me out a bit?
Anyway, so long story short I'm trying to make some HTML markup and CSS in a function in an external JS file that I can call to so I don't have to copy paste code all the time and I can edit it once and its universal. I got the HTML to work, but not the CSS. Is it even possible to have CSS in a JS function to just function as normal CSS or am I just not doing it right?
Here's my code:
What I want it to do is this:
but its just a normal h1:
Again, is there no actually way to just have normal CSS in a function or am I just not doing this properly?