How to center the modal box of iview vertically

I want the position of the modal box to be centered vertically
this is the code within the frame

clipboard.png

CSS

clipboard.png
CSS
clipboard.png
how do I write CSS to center it vertically

Mar.12,2021

parent element settings

position:relative;

or other non-static attributes
child element settings

position:absolute;
left:0;
top:0;
right:0;
bottom:0;
margin:auto;

there are three other methods. You can use Baidu on your own

.

parent element, display:flex
child element, margin:auto
done.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c800-59f0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c800-59f0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?