Spin right button

Clicking or tapping this button spins the image to the right in main view. This button is not displayed on mobile phones in order to save screen real estate. Also, the button is hidden when a multi-dimensional spin set is used. You can size, skin, and position the button using CSS.

CSS properties of the spin buttons

The button is added to an internal container that is DIV controlled with the CSS class selector:

.s7spinviewer .s7spinbuttons

CSS property

Description

top

Position from the top border, including padding.

right

Position from the right border, including padding.

left

Position from the left border, including padding.

bottom

Position from the bottom border, including padding.

width

Width of the button.

height

Height of the button.

The appearance of this button inside the container is controlled with the CSS class selector:

.s7spinviewer .s7spinbuttons .s7panrightbutton

CSS property

Description

top

Position from the top border, including padding.

right

Position from the right border, including padding.

left

Position from the left border, including padding.

bottom

Position from the bottom border, including padding.

width

Width of the button.

height

Height of the button.

background-image

The image that is displayed for a given button state.

background-position

Position inside artwork sprite, if CSS sprites are used.

See CSS Sprites .

NOTE

This button supports the state attribute selector, which can be used to apply different skins to different button states.

The button tool tip can be localized. See Localization of user interface elements for more information.

Example - to set up a spin right button that is 28 x 28 pixels, that is positioned on the right edge of inner container, and that displays a different image for each of the four different button states:

.s7spinviewer .s7spinbuttons .s7panrightbutton { 
 position:absolute; 
 right: 0px; 
 width:28px; 
 height:28px; 
 background-size:contain; 
 } 
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='up'] { 
background-image:url(images/v2/SpinRightButton_light_up.png); 
} 
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='over'] { 
background-image:url(images/v2/SpinRightButton_light_over.png); 
} 
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='down'] { 
 background-image:url(images/v2/SpinRightButton_light_down.png); 
} 
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='disabled'] { 
 background-image:url(images/v2/SpinRightButton_light_disabled.png); 
}

On this page