sharon_f — 2014-01-19T02:00:11-05:00 — #1
I have been going a little crazy trying to correct a very strange behavior with FancyBox. I am using it on a handful of pages in a website. It is being used with a combination of images and type. When I go to the page where I have FancyBox, everything on the page get pushed over about 20 px. I have tried everything to correct it and just can't find the problem. I have Googled the problem but can't seem to find a solution. Here is the url for the page that has Fancybox on it: www.northernlightsmusic.org/string_faculty_practice.html. If you click on Program Details you will see how the page shifts over. Any help would be appreciated. This is the first time I've used Fancybox. I've used Lightbox in the past with no problems when I've just been using images. Thanks in advance.
ralphm — 2014-01-19T04:09:32-05:00 — #2
sharon_f — 2014-01-19T15:01:48-05:00 — #3
Thanks. HTML has now been validated on http://www.northernlightsmusic.org/string_faculty_practice.html and the Costs link page. But if you click between the two the page with fancybox still pushes to the right.
paulob — 2014-01-19T16:31:29-05:00 — #4
The problem is that you are setting the body to max-width:700px; in the fancybox page.
margin: 0 auto;
Therefore anything over 700px is ignored which is why the page looks off centred because the content flows out by 100px on one side.
Remove the max-width:700px and the page should straighten out.
sharon_f — 2014-01-19T17:06:53-05:00 — #5
Thank you, Paul. It works perfectly now! Also, thank you, ralph, for taking me to task about my html. Sometimes when I am in a hurry I do so much cutting and pasting that I end up with really bad code.
system — 2014-10-08T01:28:20-04:00 — #6
This topic is now closed. New replies are no longer allowed.