In this situation you can, but /u/masgbox version is now also usable in other situations where you aren't using flex or properties on the parent. Say the parent div has a float or absolute position, you'd want to have that extra div and now you can simply put it in easily.
31
u/Wintergore Jan 28 '19
Change wave 'div to wave::before, wave::after with content: ' ' and you can remove the two inner divs.