Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9166641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:11:52+00:00 2026-06-17T15:11:52+00:00

My test site: rockitmembers.us Site is WordPress.org, not using a plugin. Code inside header.php

  • 0

My test site: rockitmembers.us

Site is WordPress.org, not using a plugin.

Code inside header.php is:

<link rel="stylesheet" href="http://www.rockitmembers.us/wp-content/themes/acosmin-v3/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />

This code in footer.php:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
    <script type="text/javascript" src="http://www.rockitmembers.us/wp-content/themes/acosmin-v3/fancybox/source/jquery.fancybox.pack.js"></script>
    <script>
    $(document).ready(function() {
    $(".iframe").fancybox({
       fitToView : false,
       autoSize : false,
       scrolling : 'no',
    maxWidth        : 820,
    maxHeight       : 600,
    width           : 800,
    height          : 600,
    type            : 'iframe'
        });
    });
    </script>

And this code in my wordpress post for the BUY A LICENSE button:

<a href="http://www.rockitmembers.us/fancyboxtest.html" class="iframe rollover"><span class="displace">Buy A Beat</span></a>

Click the BUY A LICENSE button on the first post (My Reflection). Fancybox functions fine except it adds a 17px margin-right to fancybox-lock which messes up the look of the background, I think it’s pushing the scroll bar out? I’m not sure. When you inspect it in Chrome it adds <body class="fancybox-lock" style="margin-right: 17px;"> when the buy a license button is clicked.

I tried the suggestion in this post Jquery Fancybox 2 adds a margin-right? by editing jquery.fancybox.css and taking out overflow-y: scroll; but that still didn’t fix the problem.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:11:53+00:00Added an answer on June 17, 2026 at 3:11 pm

    It looks like it really has nothing to do with Fancybox. Looking at your implementation, it looks like your hard-coded widths on the “detail” sections in each <ul> are pushing the edge of the Fancybox over. You should be able to eliminate most of the floats in cartstyles.css, and then you don’t need to specify widths on those elements.

    EDIT: I don’t recommend doing this as a habit, but if the only complaint is the extra margin, try adding this rule to your stylesheet:

    .fancybox-lock{
        margin-right:0 !important;
    }
    

    !important overrides the normal cascade, and would allow you to override the inline style applied by Fancybox. It would just be masking whatever the real issue is, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using webdriver for test automation on site which code is auto-generated probably
I'm working on this test site , which is a WordPress website (using version
I'm using the Craftmap plugin on the following test site: http://hhglobal.energycell.co.uk/locations/ . Beneath the
Test Site Example: http://cincinnati-website-design.net/sandbox/ I am using the Avada Theme and can't seem to
I'm running my test site on localhost. when i load it with URL: localhost/projects/forums/index.php
This is the site i am using as a test site: http://test.pafo.net/ My problem
I installed Thank you plugin but the button on my test site looks strange.
I am using ASP.NET 3.5 and i am busy setting up a test site
So I have this in my PHP script on my test site: $file=clip.mp4; $fake=clip_testing.mp4;
Look, this is my test site. http://www.securebitcr.com/test/balls.php The problem that I am having is,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.