📅  最后修改于: 2022-03-11 14:47:48.752000             🧑  作者: Mango
{{-- this is my code
there is two ways to do it
the first method using flex box
--}}
title
body
{{--
but the problem with this method that you need to give each element the center class
and in the case of some elments such as an image you need to wrap it inside a div
and pass the center class to it
--}}
{{-- the other way is using css grid --}}
title
body
{{--
the cool thing about this method that you just need to pass the center class,
in the parent div and evreything inside this div will be centered
and for example you dont need to put the image elemnt in a div in order for it to work
--}}