Is there a more efficient method?
div {
border: 2px solid black;
}
#main {
width: 107px;
height: 107px;
padding: 0;
text-align: center;
font-size: 10px;
}
#tl, #tr, #bl, #br {
position: relative;
width: 45px;
height: 45px;
}
#tl {
top: 3px;
left: 3px;
}
#tr {
top: -46px;
left: 55px;
}
#bl {
left: 3px;
top: -43px;
}
#br {
top: -92px;
left: 55px;
}
Any tips? I'm still in the process of improving my styling techniques to create more visually appealing GUIs for my web applications.
I am looking for a way to position these four div elements equally inside a parent container. The divs are named "Top Left", "Top Right", "Bottom Left", and "Bottom Right".