Highslide JS API Reference

Close Move
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl. Mauris cursus pretium mauris. Suspendisse condimentum mi ac tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec sed enim. Ut vel ipsum. Cras consequat velit et justo. Donec mollis, mi at tincidunt vehicula, nisl mi luctus risus, quis scelerisque arcu nibh ac nisi. Sed risus. Curabitur urna. Aliquam vitae nisl. Quisque imperdiet semper justo. Pellentesque nonummy pretium tellus.
Resize

Object: hs

Variables

Functions

Events

Object: hs.Expander

Variables

Functions

Events



hs.marginLeft

The expanded image or HTML content never exceeds this left margin on the page.
Say you have a 200px wide left menu on your web page and you don't want the popups to cover it. Setting the marginLeft to 230 prevents that. You can also set hs.marginTop, hs.marginRight and hs.marginBottom the same way.

Details

Type integer
Default value 15
Overrideable inline No

Example

Setting it to 230

Put this in the head section of your page.

<script type="text/javascript">
   hs.marginLeft = 230;
</script>

The effect:

See also

New, Edit