Skip to main content

How to Make an HTML5 Design Unresponsive

Learn how to make an HTML5 design unresponsive. Step-by-step guide to fixing your ad’s dimensions by editing the HTML file.

Updated today

By default, all HTML5 designs downloaded from Bannersnack are fully responsive, automatically adapting to the viewer’s device and browser size.


However, there are situations—especially in advertising campaigns or fixed-layout website placements—where you may prefer an unresponsive HTML5 banner that always displays at its original size.

This guide will walk you through the exact steps to convert a responsive HTML5 design into a fixed-size, unresponsive version while keeping it fully functional.

Steps to Make Your HTML5 Design Unresponsive

1. Download the HTML5 version of your design

  • From your workspace, select your design and choose Download > HTML5.

2. Unpack the downloaded ZIP file

  • Extract all files to a folder on your computer.

3. Duplicate and rename the HTML file

  • Find the index.html file.

  • Make a copy of it in the same folder and rename the copy to iframe.html.

4. Edit the index.html file

  • Open index.html with an HTML editor like Notepad++.

  • Delete the existing code and replace it with the following:

htmlCopyEdit<!DOCTYPE html> <html> <head> </head> <body> <iframe src="iframe.html" width="design_width" height="design_height" scrolling="no" frameborder="0" allowtransparency="true" allow="autoplay" allowfullscreen="true"></iframe> </body> </html>

5. Update the width and height values

  • Replace "design_width" and "design_height" with your design’s original dimensions (e.g., 300 for width, 250 for height).

6. Save and preview

  • Save your changes, then open index.html in your browser.

  • Your HTML5 design will now be displayed as unresponsive, keeping its fixed size regardless of browser or screen dimensions.

Why Use an Unresponsive HTML5 Banner?

  • Consistent layout for ad placements with strict size requirements (e.g., Google Ads, programmatic platforms).

  • Pixel-perfect display without scaling distortions.

  • Predictable creative review across devices.


Ready to start designing?

👉 Sign up for a free Bannersnack account – it only takes a minute.
👉 Already have an account? Log in here to continue where you left off.

Did this answer your question?