@maym42Submitted over 3 years ago
Please tell me how I can align the main container vertically in the best way.
Please tell me how I can align the main container vertically in the best way.
To align them at the center of the page use absolute and relative positioning. But first u have to rename the class of all the cards to a common name like "cards card-x". Then inside the flex-container use "position: relative;" and inside the common class cards use "position: fixed; right: 100%; left:100%; transform: translate(-50%, -50%);". This will do the job :)