I have a script which, for every line in a text file, creates a button with a name and a .innerHTML. I have attempted aligning them in a grid (2 buttons wide by x buttons tall) next to a large text area, however have not been able to figure out how to. Could someone assist me?
CSS
.textArea{
width: 700px;
height: 520px;
color: white;
border: none;
background-color: black;
resize: none;
outline: none;
}
.buttons {
width: 200px;
height: 100px;
}
HTML
<textarea class ="textArea"id="output" name="consl" cols="100" readonly="true"></textarea>
JS
let btn = document.createElement('button')
btn.innerHTML = title
btn.name = ">>>" + customs[1]
btn.className = "customButtons"
document.body.appendChild(btn)