hs.width
Sets the pixel width of the HTML expander, or the width of the constraining box for images.
Instead of setting the size of the expanders using CSS on the content div, you can set hs.width and hs.height generally on the page or specifically on each expander. In both these cases, hs.width and hs.height override the size set using CSS. Especially when using self rendering content wrappers this is an easier way.
For image popups, when hs.useBox is true, you set the width and height through hs.width and hs.height.
Details
Requires |
html |
Type |
integer |
Default value |
undefined |
Overrideable inline |
Yes |
Example
A wider AJAX expander
In this case the .highslide-html-content CSS rule says the expander should be 400px, but we override it inline by setting width: 600.
<a class="highslide" href="../include-short.htm"
onclick="return hs.htmlExpand(this, { objectType: 'ajax', width: 600})">
Click to open
</a>
Click to see the effect.
Click to open
See also