DEV Community

Discussion on: If you could start over from scratch, how would CSS work?

Collapse
 
georgeoffley profile image
George Offley

You have clearly never tried to center something among several other divs.

Collapse
 
georgeoffley profile image
George Offley

Biggest CSS issue that has been kind of but not really fixed is the constant browser hacks needed.

Collapse
 
nektro profile image
Meghan (she/her)
.parent {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
Thread Thread
 
pedro profile image
Pedro M. M. • Edited

Flexbox is the best thing ever happened to CSS. ❤️

Thread Thread
 
georgeoffley profile image
George Offley

Agreed. Makes things so easy. Makes me hate the world a little for wading through the preflexbox world.

Thread Thread
 
ra9 profile image
Carlos Nah

What happens to css grid then?

Thread Thread
 
anechol profile image
Ashley E

Late reply sorry, but nothing. Grid and Flex are to be used in tandem with one another.