Add Width and Height for Colorbox Modal Images

Post Reply
xgis
User
Posts: 68

Add Width and Height for Colorbox Modal Images

Post by xgis »

Add Width and Height for Colorbox Modal Images so images resize to either;

  1. Fixed Heights and Widths
  2. Screen Area / Resolution Percentages

Include it in the Globals


MichaelG
User
Posts: 1095

Post by MichaelG »

Colorbox Settings can be added by Page_Head server event, e.g.

<script>
ew.lightboxSettings = {
    ...ew.lightboxSettings,
    width: 500,
    height: 500,
    fixed: true,
    // ... other settings ...
};
</script>

Post Reply