WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tomkzo
    Member
    Posted 1 year 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) :

    http://www.boogiebox.fr/zrh/?p=57

    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

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. tomkzo
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    However, i can't fix the centering position yet

  4. tomkzo
    Member
    Posted 1 year 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

Tags

No tags yet.