Need help in general with css

im having issues where i set display to flex in parent and used alignitems & justify content to center but in child property its suggesting display as block. i watched few tutorials in theory its looks easy but when i try to do something im facing issues like this https://cdn.discordapp.com/attachments/448294302053957632/1054276667780104272/image.png
3 Replies
Mannix
Mannix2y ago
could you post your code in a codepen? Also there is no need to use position to put your modal container in the center.
13eck
13eck2y ago
If you're trying to do a modal, please use the dialog element: that's what it's designed to be.
The native HTML <dialog> element should be used in creating modal dialogs as it provides usability and accessibility features that must be replicated if using other elements for a similar purpose.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
Want results from more Discord servers?
Add your server