DEV Community

Discussion on: Best ways to center objects in CSS (Horizontally and Vertically )

Collapse
 
amankanojiya profile image
AMANKANOJIYA

which one is more efficient to the web and can help me making responsive
if any suggestion pls reply

Collapse
 
amirjafari1992 profile image
Amir Jafari

Flex and Grid both are great

Collapse
 
amankanojiya profile image
AMANKANOJIYA

thank you sir

Collapse
 
aoussiadmehdi profile image
Mehdi Aoussiad

I recommend Flexbox, it's much easier.

Collapse
 
amankanojiya profile image
AMANKANOJIYA

so, sir, it will help me in making the website responsive ??

Thread Thread
 
aoussiadmehdi profile image
Mehdi Aoussiad

Yeah of course it helps. Try this: w3schools.com/csS/css3_flexbox.asp

Collapse
 
amankanojiya profile image
AMANKANOJIYA

Thank you sir