[SOLVED][Drupal Colorbox][Drupal 6] Image floats left inside Colorbox

| | 1 min read

Many Drupal users reported that the Image floats left inside the Colorbox Window. If you are encountering the same situation with Colorbox in your Drupal site then read on to find out more.

Here is the possible fix.

  • The image floats left if there is an iframe=true in the link to the image.
  • Colorbox by default assigns float left to content in iframes.
  • Therefore remove iframe=true from the link to center the image.
  • iframes are required for HTML documents and is not required to open images.

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.