› Forums › Easy FancyBox Pro › need a fancybox with a minimum width.
- This topic has 4 replies, 3 voices, and was last updated 6 years, 8 months ago by
Mona Reilly.
-
AuthorPosts
-
-
6 January 2017 at 00:19 #7676
Mona Reilly
ParticipantHello, I want to launch a fancybox containing 3 images that are very tall. I bought the pro extension hoping to dictate the width to a minimum width, have the fancybox height to match the window and leave the content scrollable, and then be able to click through the images.
Ive managed to get it to open all three images in a stacked column to the correct width by using an inline container, but am not able to click through the three images within the container. What is the best way to achieve this? Thank you so very much.
-
6 January 2017 at 07:32 #7679
RavanH
KeymasterHi Mona, welcome on these forums.
… have the fancybox height to match the window and leave the content scrollable… but am not able to click through the three images within the container.
So as I understand it, you wish to be able to scroll the height of one image and then click trough to the next image?
You will indeed need the Inline Content mode (allowing scrolling) but I suggest dividing them up into three inline content instances, linking them into a gallery with the rel attribute.
In code, that would look something like:
<a href="#image_1" class="fancybox-inline button" rel="image_gallery">My gallery</a> <a href="#image_2" class="fancybox-inline" rel="image_gallery"> </a> <a href="#image_3" class="fancybox-inline" rel="image_gallery"> </a> <div class="fancybox-hidden"> <div id="image_1" style="width:300px"><img src="..." alt="..." /></div> <div id="image_2" style="width:300px"><img src="..." alt="..." /></div> <div id="image_3" style="width:300px"><img src="..." alt="..." /></div> </div>
Of course adapting the src and alt values to your images and width and height values to match your desired maximum FancyBox width. The text My gallery can be replaced by a thumbnail image or dressed up as a button with some CSS style rules via the
.button
class. -
6 January 2017 at 22:42 #7684
Mona Reilly
Participantthank you so much for helping! However Im getting an unexpected result. Could I have some settings wrong? Would you be willing to look at my page? I kept your code as-is for testing, inserting my own images. No image pops up, neither does the close button, and the tiny part of the modal showing is on the top left instead of centered. When I check the code it seems the image IS in there but not sure whats happening.
-
6 January 2017 at 22:58 #7685
-
6 January 2017 at 23:21 #7687
Mona Reilly
Participantthank you so much! I have emailed all the information and included the thread.
-
-
AuthorPosts
- You must be logged in to reply to this topic.