[SOLVED][Drupal Colorbox] How to control how Colorbox reduces overlay size to fit the available area?

| | 1 min read

A number of Drupal users wanted to know how to control how Colorbox reduces overlay size to fit the available area as Colorbox sometimes occupies the whole browser window if the screen resolution is low. This makes Colorbox look aesthetically bad and the controls of the Colorbox are not fully visible. If you are facing the same issue with Colorbox in your Drupal site then read on to find out the solution.

Here is the solution. There are options in the Colorbox Configuration page to set the max height and max width of Colorbox. Configuring it to 90% will ensure that Colorbox always occupies only 90% of the browser window.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.