DEV Community

Cover image for 5 CSS Tricks & Tips That You Should Know πŸš€ + Giveaway

5 CSS Tricks & Tips That You Should Know πŸš€ + Giveaway

Garvit Motwani on April 20, 2021

CSS plays a major part in the field of web development and can be easy and at a point, it can also be advanced and tough, throughout CSS's history,...
Collapse
 
arealsamurai profile image
Info Comment hidden by post author - thread only accessible via permalink

This is not a good article. Whoever is a beginner and tries to do this, will fail. You're leaving out of context a lot of things and even if I go and edit your code on codepen, I can see that removing margin or adding margin doesn't center anything vertically. What gives the vertically centered view of the text is your padding on the .center class and the margin of the p tag, not adding margin:auto. Please at least try out your own code before you post an article.

Collapse
 
anonymouscoder profile image
Ali Fahmi

Great job!

Collapse
 
garvitmotwani profile image
Garvit Motwani

Thanks

Collapse
 
aycanogut profile image
bleedeleventh

great!

Collapse
 
garvitmotwani profile image
Garvit Motwani

Thanks πŸ™

Collapse
 
filatovv profile image
Yuri Filatov

Good work!

Collapse
 
garvitmotwani profile image
Garvit Motwani

Thanks πŸ™

Collapse
 
aalphaindia profile image
Pawan Pawar

Good work!!

Collapse
 
garvitmotwani profile image
Garvit Motwani

Thanks πŸ™

Collapse
 
ashishk1331 profile image
Ashish Khare😎

Do not need the giveaway but do need tricks and hacks like this.

Collapse
 
garvitmotwani profile image
Garvit Motwani

Thanks πŸ™ Bro

Some comments have been hidden by the post's author - find out more