Show Menu
TOPICS×

Zoom in button

Clicking or tapping this button zooms in on an image in the main view. This button appears in the main control bar. This button is not displayed on mobile phones to save screen real estate. You can size, skin, and position this button by using CSS.
CSS properties of the main viewer area
The appearance of the button is controlled with the following CSS class selector:
.s7ecatalogviewer .s7zoominbutton
CSS property
Description
top
Position from the top border of the main control bar, including padding.
right
Position from the right border of the main control bar, including padding.
left
Position from the left border of the main control bar, including padding.
bottom
Position from the bottom border of the main control bar, 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 also CSS Sprites .
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 zoom in button that is 28 x 28 pixels, positioned 4 pixels from the bottom and 103 pixels from the right edge of the main control bar, and displays a different image for each of the four different button states.
.s7ecatalogviewer .s7zoominbutton { 
bottom:4px; 
right:103px; 
width:28px; 
height:28px; 
} 
.s7ecatalogviewer .s7zoominbutton [state='up'] { 
background-image:url(images/v2/ZoomInButton_dark_up.png); 
} 
.s7ecatalogviewer .s7zoominbutton [state='over'] {  
background-image:url(images/v2/ZoomInButton_dark_over.png); 
} 
.s7ecatalogviewer .s7zoominbutton [state='down'] {  
background-image:url(images/v2/ZoomInButton_dark_down.png); 
} 
.s7ecatalogviewer .s7zoominbutton [state='disabled'] { 
background-image:url(images/v2/ZoomInButton_dark_disabled.png); 
}