Easy FancyBox
[resolved] Positioning problem in custom responsive theme (4 posts)

  1. tomkzo
    Posted 2 years ago #

    Hello ! First, thank you for your work, your pluggin is great.
    However, I have some trouble using it in a custom theme i'm building.
    I use responsives divs with width in % and (i think) because of it, the lightbox does not appears in the right place (position absolute on the left too far) :


    I've tried to modify that left position on the .fancybox-wrap using css first, and then jquery, but it doesn't work. I've tried to look into the fancybox js files but can't find the good parameter to change...

    Any help would be really great !! thx


  2. tomkzo
    Posted 2 years ago #

    I finaly found a way... and that was soooo simple :
    to override any style="" in an element, just use !important in the css rules. For my exemple :

    #fancybox-wrap {top:10px !important; left:10px !important;}

    Hope it will be useful for someone else.

  3. tomkzo
    Posted 2 years ago #

    However, i can't fix the centering position yet

  4. tomkzo
    Posted 2 years ago #

    Finaly found the problem : i had to take away some css from the 'body' : margin:0 auto and width...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.