Patterns for Website Banners

Purpose

A common request in modern Web sites to have some sort of graphical banner, usually with some text inside. These are most important guide lines for banners. These patterns are specially important for displaying the banner image on different zoom levels or screens and always displaying the main content.

Assumptions

  • The banner image is added as background-image property. Not <img> tag.
  • The design is flexible or responsive.

Example

  • See BannerPatterns.html in project files.

Special Cases

  • Notice if you need to include text inside the banner image, it will change in size as you zoom in and out. And it might overflow the viewport.
  • If you have scallable content above the viewport, the viewport will move up and down as you zoom in and out.
  • For really small screens, you can move the content inside the banner image outside. (For example, remove the position absolute for inside content)