Menu
I have a draggable html div, that works/drags successfully, however I’d like it to display in the center when the page loads, but it is currently displays in the top left when the page loads. Here’s my current code:
“`
.draggable-div {
position: absolute;
display: flex;
margin: 0 auto;
height: 50%;
align-items: center;
}
#box {
position: absolute;
margin: 0 auto;
align-items: center;
width:100%;
height: 35vw;
font: 35px arial;
line-height: 1.5;
background-color: transparent;
}
<div class=”draggable-div”>
<div id=”box”>
text text text </br>
text text text </br>
text text text
</div>
</div>
any help is appreciated