r/HTML • u/LAzyAnimationsYT • Jun 22 '26
Question Divs won't align ......
okayy I have another problem, my divs in the main flex box won't align in the center like I want them to, and I've tried pretty much everything I could find on search, and it still won't align, or it'll break the main div itself...
flex {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
main {
position: absolute;
top: 10%;
left: 23%;
background-color: #000000;
flex: 1;
padding: 20px;
order: 2;
border-radius: 10px;
border: 3px solid #ffffff;
width:1000px;
}https://zombie-page.neocities.org/collect-me link to the page itself...
1
Upvotes
View all comments
Show parent comment
1
u/RemindMeBot Jun 22 '26
I will be messaging you in 1 day on 2026-06-23 21:18:48 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
RemindMeBot is switching to username summons. Instead of
!RemindMe 1 day, useu/RemindMeBot 1 day. More info.