I'm attempting to position a box in the center of the page without relying on margin.
Here's what I've tried so far:
.box-middle
{
vertical-align:middle;
height:100px;
width:100px;
border:1px solid #ddd;
}
This approach hasn't been successful for me.
While using the margin property seems to work, I prefer not to use margin
as it can disrupt responsive web design.
Currently, I have a login form that I want to position in the middle of the page.
Any advice would be appreciated!
Feel free to experiment with this box by following this link: