وسط چین کردن div به صورت عمودی و افقی با استفاده از css flex
html
css .wrapper { background: #de712e; display: flex; justify-content: center; align-items: center; height: 50vh; } .myBox { width: 800px; height: 100px; border: 1px solid white; }
css
js