I'm looking for an equivalent for grid-template-columns and grid-template-rows for javascript dom. I made a simple grid layout in html and css:
<div class="box">
<div id="box1"><a href="#">box1</a></div>
<div id="box2"><a href="#">box2</a></div>
<div id="box3"><a href="#">box3</a></div>
<div id="box4"><a href="#">box4</a></div>
</div>
.box {
display: grid;
grid-template-columns: 33% auto;
grid-template-rows: 350px 588px;
}
I want to edit the styling for grid-template-columns and grid-template-rows in javascript, but I found out javascript dom doesn't support this property. Is there any other way I can edit the boxes so I can change the size of them?
Thank you for helping.