@tsu112Submitted about 2 years ago
I had to look up different practices of how to create a div in the middle of the page. The way I centered my div may not be the most effective way. What would be the best way to gauge the size and fonts?
I had to look up different practices of how to create a div in the middle of the page. The way I centered my div may not be the most effective way. What would be the best way to gauge the size and fonts?
Hello sir the easiest way to center a div is like this: `
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; flex-direction: column; } ` also the background- color isnt the same so you should change that , its ok to get stuck at the start we all did that s how you learn i wish you a happy coding!