Arrows on by default?

265 views
Skip to first unread message

accelerant

unread,
Mar 3, 2009, 2:59:23 PM3/3/09
to fancybox
Hello is there a way to show the right/left arrows upon opening a
gallery in fancy box instead only upon hover?

Gustav

unread,
Mar 3, 2009, 6:53:47 PM3/3/09
to fancybox
Yes, it's possible.
You need to mod your jquery.fancybox.css file for that.

Find those selectors:

span#fancy_left_ico {
left: -9999px;
background: transparent url('fancy_left.png') no-repeat;
}

span#fancy_right_ico {
right: -9999px;
background: transparent url('fancy_right.png') no-repeat;
}

And change the values -9999px to 20px. Don't forget the semicolons.

And comment out those selectors (it's not necessary, but it's right
thing to do):
/*
a#fancy_left:hover span {
left: 20px;
}

a#fancy_right:hover span {
right: 20px;
}
*/

/* this text is commented out */ <- CSS comment
Reply all
Reply to author
Forward
0 new messages