One of the earliest methods
of creating responsive layouts
is to set the width of blocks
in percentages and stack them
one below the other for mobile
devices. With the help of media
queries, we can use float
to stack them next to each
other on larger screens:
While this works, creating
huge layouts with the float
property alone gets complex.
We have better ways of creating
responsive layouts using
flexbox and grid
which we will explore in
the upcoming chapters.