Advertisement
NaroxEG

CSS Centering | Solution 3

Aug 28th, 2022
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.15 KB | None | 0 0
  1. .parent {
  2.     display: flex;
  3.     align-items: center;
  4.     justify-content: center;
  5. }
  6.  
  7.  
  8. /* Child width is 400px & height is 200px */
  9. .child {
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement