DEV Community

5 CSS Interview questions one should know

Neha Sharma on January 22, 2020

1. What is flex and CSS grids? Which to use when? Answer: Flex and CSS grids are a great way to create a web page layout. However, the m...
Collapse
 
paceaux profile image
Paceaux

Answer: rem and em are both CSS units. rem means relative em.

Small correction: rem means "root em", not "relative em".

However, both are considered relative units : drafts.csswg.org/css-values-3/#rel...

Collapse
 
hellonehha profile image
Neha Sharma

Thank you for correcting. I will update the article :)

Collapse
 
devanghingu profile image
Devang Hingu

yeah you got right..

Collapse
 
eth2234 profile image
Ebrahim Hasan

Yaaay, I know all the answers <3 thanks for your time Neha!

Collapse
 
k4u5hik profile image
Kaushik Chemburkar

Another good one would be to ask the difference between a container and a wrapper.

Collapse
 
hellonehha profile image
Neha Sharma

Yeah this is good.