I'm trying to make a calendar like this web: link what instead of the months they appear to me vertically, I would like four months to appear for each line, in plan January-February-March-April and then 4 more and so ...
The step I'm going through is the following:
var mes_text = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
function estructurar() {
for (m = 0; m <= 11; m++) {
//Mes
let mes = document.createElement("DIV");
mes.className = "mes";
document.body.appendChild(mes);
//Tabla
let tabla_mes = document.createElement("TABLE");
tabla_mes.className = "tabla_mes";
mes.appendChild(tabla_mes);
//Título
let titulo = document.createElement("CAPTION");
titulo.className = "titulo";
titulo.innerText = mes_text[m];
tabla_mes.appendChild(titulo);
}
}
I guess it will have to do with the AppendChild
but I'm not sure, I'm practicing to learn. Thank you very much for your help.