DocumentationDynamic Media Viewers Reference Guide

Zoom reset button

Last update: October 12, 2021
  • Topics:
  • Dynamic Media Classic,Viewers,SDK/API,Zoom

CREATED FOR:

  • Developer
  • User

Selecting this button resets an image in the main view. 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:

.s7basiczoomviewer .s7zoomresetbutton
CSS propertyDescription
topPosition from the top border, including padding.
rightPosition from the right border, including padding.
leftPosition from the left border, including padding.
bottomPosition from the bottom border, including padding.
widthWidth of the button.
heightHeight of the button.
background-imageThe 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 zoom reset button that is 32 x 32 pixels and positioned six pixels from the top and right edge of the viewer. It must display a different image for each of the four different button states.

.s7basiczoomviewer .s7zoomresetbutton {
top:6px;
right:6px;
width:32px;
height:32px;
}
.s7basiczoomviewer .s7zoomresetbutton [state='up'] {
background-image:url(images/v2/ZoomResetButton_dark_up.png);
}
.s7basiczoomviewer .s7zoomresetbutton [state='over'] {
background-image:url(images/v2/ZoomResettButton_dark_over.png);
}
.s7basiczoomviewer .s7zoomresetbutton [state='down'] {
background-image:url(images/v2/ZoomResetButton_dark_down.png);
}
.s7basiczoomviewer .s7zoomresetbutton [state='disabled'] {
background-image:url(images/v2/ZoomResetButton_dark_disabled.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8