Fancybox is not working properly -


i have problem unable solve. when click on picture use fancybox enlarge , visualize picture, far when click he's throwing me top of page , not correct , know how revolve it?

link project http://codetek.com.br/~barbosa/

there many possible solutions, either modifying fancybox css or fancybox helpers

in case scenario, when image clicked , opened page scroll top while image show,

i recommend add following css property in fancybox-lock body selector in fancybox css.

.fancybox-lock body {     overflow: visible !important; } 

other solution helpers is

helpers: {     overlay: {       locked: false     } } 

sidenote: using id trigger fancybox $("#single_2").fancybox({ , in html

<div class="circle-box">     <a id="single_2" href="portfolio/img2.jpg" title="none1">         <img src="img2.jpg" alt="none1" />     </a> </div> <div class="circle-box">     <a id="single_2" href="portfolio/img3.jpg" title="none1">         <img src="img3.jpg" alt="none1" />     </a> </div> 

id's must unique change fancybox trigger $(".single_2").fancybox({ , in html

<div class="circle-box">     <a class="single_2" href="portfolio/img2.jpg" title="none1">         <img src="portfolio/img2.jpg" alt="none1" />     </a> </div> <div class="circle-box">     <a class="single_2" href="portfolio/img3.jpg" title="none1">         <img src="portfolio/img3.jpg" alt="none1" />     </a> </div> 

same changes rest of images.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -