Show Menu
TOPICS×

Zoom out button

Clicking or tapping this button zooms out on an image in the main view. This button does not display on mobile phones in order 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:
.s7zoomviewer .s7zoomoutbutton

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.
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 .
Example - to set up a zoom out button that is 32 x 32 pixels, positioned six pixels from the top and right edge of the viewer, and displays a different image for each of the four different button states.
.s7zoomviewer .s7zoomoutbutton { 
top:6px; 
right:6px; 
width:32px; 
height:32px; 
} 
.s7zoomviewer .s7zoomoutbutton [state='up'] { 
background-image:url(images/v2/ZoomOutButton_dark_up.png); 
} 
.s7zoomviewer .s7zoomoutbutton [state='over'] {  
background-image:url(images/v2/ZoomOutButton_dark_over.png); 
} 
.s7zoomviewer .s7zoomoutbutton [state='down'] {  
background-image:url(images/v2/ZoomOutButton_dark_down.png); 
} 
.s7zoomviewer .s7zoomoutbutton [state='disabled'] { 
background-image:url(images/v2/ZoomOutButton_dark_disabled.png); 
}