Title: Positioning problem in custom responsive theme
Last modified: August 20, 2016

---

# Positioning problem in custom responsive theme

 *  Resolved [tomkzo](https://wordpress.org/support/users/tomkzo/)
 * (@tomkzo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/positioning-problem-in-custom-responsive-theme/)
 * 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](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/](http://wordpress.org/extend/plugins/easy-fancybox/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [tomkzo](https://wordpress.org/support/users/tomkzo/)
 * (@tomkzo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/positioning-problem-in-custom-responsive-theme/#post-3601543)
 * 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.
 *  Thread Starter [tomkzo](https://wordpress.org/support/users/tomkzo/)
 * (@tomkzo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/positioning-problem-in-custom-responsive-theme/#post-3601546)
 * However, i can’t fix the centering position yet
 *  Thread Starter [tomkzo](https://wordpress.org/support/users/tomkzo/)
 * (@tomkzo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/positioning-problem-in-custom-responsive-theme/#post-3601547)
 * Finaly found the problem : i had to take away some css from the ‘body’ : margin:
   0 auto and width…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Positioning problem in custom responsive theme’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [tomkzo](https://wordpress.org/support/users/tomkzo/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/positioning-problem-in-custom-responsive-theme/#post-3601547)
 * Status: resolved