jquery - Fancy Box Position Absolute Top Left -
i hoping solve little problem have had using jquery fancy box plugin.
my issue trying use absolute position appears in top left of overlay reagardless of overlays size.
http://www.csr500.co.uk/websites/v9/preview.html
now jq , fw icons, in bottom left positioned in top left, in similar fashion non overlay mode.
the way have done means text in title tag not show on hover, want can tell restricts me access fancybox-title-inside-wrap class rather fancy-box-outer class.
any in sorting out issue reaqlly appreciated.
thanking in adavnce
cheers
cameron
just idea : why don't take icons out of title
section , create new (hidden) div
them
<div class="iconsplaceholder" style="display: none"> <div class="overlay-technologies"> <div class="overlay-technology-1"> <div class="dev-icon"></div> </div> <div class="overlay-technology-2"> <div class="web-icon"></div> </div> </div> </div>
notice new class iconsplaceholder
, can want.
then append them fancybox using beforeshow
callback like
beforeshow: function () { $(".overlay-technologies").clone().appendto(".fancybox-inner"); }
notice appending .overlay-technologies
selector, child of placeholder (.iconsplaceholder
). notice have clone
selector before appendto
because moved position in document's flow , cleared when fancybox closes otherwise. of course, requires proper style , position.
check jsfiddle
Comments
Post a Comment