Home › Forums › JavaScript › Setting (max) widths on certain/specified Fancybox overlays. › Reply To: Setting (max) widths on certain/specified Fancybox overlays.
November 1, 2016 at 10:42 am
#247272
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-)