Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Setting (max) widths on certain/specified Fancybox overlays. Reply To: Setting (max) widths on certain/specified Fancybox overlays.

#247272
Shikkediel
Participant

seeing as I’m terrible with javascript!

I recall seeing some decent code by your hand…
This script’s a bit confusing though, this not being the current element but the fancybox object itself you’re defining at that moment. So changing maxWidth actually “literally” sets the property that is right above it. Seems to only be working with integers, pixel values and percentages by the way.

8-)