Page 1 of 1

position of a lightbox

Posted: Tue Sep 05, 2017 12:06 pm
by Norfolkman
I want use "text menu" to open a hyperlink in a lightbox. The lightbox defaults to being in the middle of the page. Is there an option to re-position it elsewhere?

I looked in ProgramFiles/wysiwyg webbuilder 12/fancybox and found jquery.fancybox - 1.3.4.css This has a setting of 50% TOP & 50% LEFT
I am assuming that this specifies where the box will be placed! but if I try to change these figures, it will not allow me to save the file, and says I do not have permission.

Anyone know of a workaround for this please?

Re: position of a lightbox

Posted: Tue Sep 05, 2017 12:18 pm
by BaconFries
This is standard to most lightbox scripts they always open centered. For the Fancybox you can try the following not tested.
Insert using Page HTML between the head tags<head></head>tags*

Code: Select all

<style>
#fancybox-wrap {
  position: absolute;
  top: 100px !important;
}
</style>
See more from Fancybox
Fancybox Docs

Re: position of a lightbox

Posted: Tue Sep 05, 2017 2:04 pm
by Norfolkman
Thank you BaconFries.

Worked perfectly !! :D

Re: position of a lightbox

Posted: Tue Sep 05, 2017 2:09 pm
by BaconFries
👍👍