The primary issue faced by most Developers these days is irregular div alignment. Keeping everything aligned is important for developers to make their websites more appealing to the audience. In this blog, I’ll be telling you about 3 easy ways that c...
kajal1801.hashnode.dev3 min read
Good article! It is also possible to center the div using CSS grid like so:
body {
margin: 0;
width: 100%;
min-height: 100vh;
display: grid;
justify-content: center;
align-items: center;
}
div {
background: lightgreen;
height: auto;
}
Srikar Mk
Bringing upon changes
Pretty nice. Congrats on finally posting your first blog 🫡.