I don't think this is worth spending time implementing. You shouldn't be globally assigning a style to div
in professional code, anyway. As I understand it (as a developer not focused on HTML/CSS/JS), this would be very bad form since the div
element is so generic. Just use a class. It's simple and will actively improve your post.
console.log("Hello.");console.log("OMG. See how big?");
.myclass { border: 1px dashed #f90; background: #fc6; line-height: 5; text-align: center;}