Simple question, how do I format the output text of display.innerHTML so that I can position it centered within a determined height?
var display = document.getElementById("display");
display.innerHTML = "RGB (" + red + ", " + green + ", " + blue + ")";
The output will be a text "RGB(red,green,blue)".
This is the CSS :
#display {
    height: 100px;
    background: #425779;
    transition: background 100ms;
    margin-top: 30px;
    border: 1px solid #000;
    
    text-align: center;
}
Just wanna display it centered vertically and horizontally.
 
     
    