I ask experienced people to help

Why aren’t the header elements rearranged into a column when the screen size is reduced https://codepen.io/duocore/pen/qBqYPBY

They are.
<header> contains 2 elements:

<div class="header-img"></div>
<div class="nav"></div>

Originally they are displayed as a row, after reducing screen size they are displayed as a column.

Helpful technique is to creade a background-color and dotted border for every element. That way you can see what is happening when elements are reordered.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.