So I found out that you HAVE to hardcode this inline. You cannot programmitcally (with JS) add the styles nor can the styles be in a class or id from a style sheet you reference. Hard part about that is, I'm hiding a div if there's no data to fill it and displaying the div if there is. Because I have to use
display: block!important;
(and I have to include the !important), it makes the div show regardless of what my JavaScript tells it to do. Also, if I use visibility instead of display to hide the div, the element would still be on the page taking up space and I obviously don't want that. Maybe someone can see what I'm doing wrong?