position of a lightbox

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Norfolkman
 
 
Posts: 65
Joined: Tue May 09, 2017 3:16 pm
Location: United Kingdom

position of a lightbox

Post 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?
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: position of a lightbox

Post 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
Norfolkman
 
 
Posts: 65
Joined: Tue May 09, 2017 3:16 pm
Location: United Kingdom

Re: position of a lightbox

Post by Norfolkman »

Thank you BaconFries.

Worked perfectly !! :D
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: position of a lightbox

Post by BaconFries »

👍👍
Post Reply