user1621887
user1621887

Reputation: 61

How to move close button in fancybox?

I need to change the position of the close button in fancybox 2 script. Can't figure out how. Please help. http://squaretwo.ru/fancybox.jpg

Upvotes: 0

Views: 8090

Answers (2)

user1415683
user1415683

Reputation:

The fancybox close button is managed by a css file(jquery.fancybox.css), so try changing it's properties(top and right) to get it where you want, here's my close button css:

.fancybox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8040;
}

Upvotes: 2

fliim
fliim

Reputation: 2189

That how I do:

#fancybox-close {
    right: 20px !important;
    top: 12px !important;
}

Upvotes: 0

Related Questions