JavaScript Question about resizing elements

Hi!

I’m wondering if there is an easy way to make the first section of a page automatically resize depending on the browser size. It would make the first strip a user sees the same no matter how large or small their monitor (ie. they would not see another strip beginning if they had a larger monitor).

Kind of like these pitchfork cover stories :

I think this is a javascript question, but would be happy if it was merely a css or html5 question.
Thanks!

1 Like

Hi Chris,
It is possible.
you can use windowWdith as a trigger to do so.

Generally, you just need to have layout for different breakpoints.

Hope useful. Good luck,
Heson

Can you explain that how to do that?

I’m also wondering how to do this. Can someone explain in further detail?