fancybox-wrap inherits the width of first image

98 views
Skip to first unread message

ninjapiraatti

unread,
Dec 8, 2010, 5:39:18 AM12/8/10
to fancybox
Hi!

I'm having a bit of trouble with fancybox. When I open up an image in
the gallery, fancybox-wrap resizes correctly but when I navigate with
arrows, its size no longer changes. It remains the same as in the
first image opened. This causes the arrows and close button to mis-
align. Image itself also aligns strangely because of this.

You can see it here: http://www.life-style.fi/index.php?page=galleria

If you start with the 4th image and navigate forward, you can see it
at its worst.

Thanks!

JFK

unread,
Dec 9, 2010, 2:23:39 PM12/9/10
to fancybox
well, definitively this is a css issue rather than a fancybox issue
but you decided to mess with the fancybox css file
my advice is to leave the original css file intact and then to create
another to override whatever you need for your customized design
that way is easier to track down what went wrong

it is also recommended not to set general declarations like
a {width: 100px;}
but to use IDs or classes
a.myClass1 {width: 100px;}

because fancybox's <a> tags would be also affected in this case

ninjapiraatti

unread,
Dec 11, 2010, 2:09:44 AM12/11/10
to fancybox

Thanks, I'll test this.

ninjapiraatti

unread,
Dec 12, 2010, 3:20:00 AM12/12/10
to fancybox

I tested the gallery with css intact, no effect. Could you hazard a
guess why it's behaving like it is? Why doesn't the width change?


On Dec 9, 9:23 pm, JFK <jfk.d...@gmail.com> wrote:

ninjapiraatti

unread,
Dec 12, 2010, 3:31:11 AM12/12/10
to fancybox

I noticed that on some other sites where I have fancybox working just
fine, the styles are inline. On this site, there is no declarations
inside div fancybox-wrap. What does this tell you?

NACHO IGLESIAS TRIAY

unread,
Dec 12, 2010, 4:38:47 AM12/12/10
to fanc...@googlegroups.com
No titles set of images. If I give the login to my wordpress website would you mind setting the titles you?
Greetings
--
You received this message because you are subscribed to the Google Groups "fancybox" group.
To post to this group, send email to fanc...@googlegroups.com.
To unsubscribe from this group, send email to fancybox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fancybox?hl=en.


Reply all
Reply to author
Forward
0 new messages