Skip to content
Home » Blog » How to resize a div automatically based on browser height

How to resize a div automatically based on browser height

Looking to re-size any div dynamically based on your browser height then this code can be useful!
Add this code in the HTML head area.
{code type=Javascript}

{/code}

In your body area, add this HTML code,
{code type=html}

.
.
.
.

{/code}

Now check this code in various browsers/screen resolution, you will see the div automatically re-sizes.
Happy coding!

Leave a Reply

Your email address will not be published. Required fields are marked *