Hello! Tell me, please, because of what fancybox can open an image at the very bottom of the page (not in the window, but simply in the text).

<script src="/js/jquery-1.7.1.min.js" language="JavaScript" type="text/javascript"></script> <script src="/asset/common/fancybox/jquery.fancybox.js" language="JavaScript" type="text/javascript"></script> <script src="/js/main.js" language="JavaScript" type="text/javascript"></script> <div id="photos"> <a href="/files/photo/12/4d9dae5336d817af05a509f6c9485650.png" rel="group" style=" text-decoration:none;" class="gallery"> <img src="/files/photo/12/min_4d9dae5336d817af05a509f6c9485650.png" style="width:98px; margin-right:15px;" alt="Офис"> </a> <a href="/files/photo/12/823241d72f5f45fa9c7a107f8511a6f8.jpg" rel="group" style=" text-decoration:none;" class="gallery"> <img src="/files/photo/12/min_823241d72f5f45fa9c7a107f8511a6f8.jpg" style="width:98px; margin-right:15px;" alt="Офис"> </a> <div class="clear" style="height: 11px"></div> </div> <script type="text/javascript"> $(document).ready(function() { $("a.gallery").fancybox(); }); </script> 

There are no errors in the console.

    1 answer 1

    Understood, it turned out, the style file was incorrectly connected.