Jump to content

Width and height Francybox


Recommended Posts

hello,

I created a fancybox to open my links cms.


I can't adust the width and height of the fancybox .

<li style="width:"100%"><i class="icon-truck"></i><a href="#product-cms" id="cms-link"> - Livraison rapide et suivie</a></li>
<div style="display:none;">
<div id="product-cms">
{$cms->content}

</div>
</div>

<script
type="text/javascript">
{literal}
$(document).ready(function() {
$('#cms-link').fancybox();
});
{/literal}
</script>

I tried adding:

<script
type="text/javascript">
{literal}
$(document).ready(function ({

'width' : '75%',

'height' : '75%',


        });
    });


{/literal}
</script>

but it doesn't work

Prestashop 1.6

Thank you fot your help

Link to comment
Share on other sites

  • 1 year later...

thank you rocky , pb solved for me 

 

I have one more question :D

how can I have an overlay with my fancybox and how can I give the possibility to close the fancybox  if user click on overlay , I mean it s not necessary to click on close button 

 

I tried this but it doesn't work : 

 $("#dialog").fancybox({
    'width':800,
            'padding':0,
            'height':375,
            'autoSize' : false,
            'overlayShow' : true
        })
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...