Clicking or tapping on this button returns a user to the previous slide in the carousel set. This button is not displayed on touch devices. You can size, skin, and position this button using CSS.
CSS properties of the main viewer area
The appearance of the button is controlled with the following CSS class selector:
.s7carouselviewer .s7panleftbutton
CSS property |
Description |
---|---|
top |
Position from the top of the viewer border. |
right |
Position from the right of the viewer border. |
left |
Position from the left of the viewer border. |
bottom |
Position from the bottom of the viewer border. |
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 . |
cursor |
Cursor type. |
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 previous slide button that is 60 x 60 pixels, positioned 10 pixels from the left viewer border and vertically centered, and displays a different image for each of the four different button states.
.s7carouselviewer .s7panleftbutton {
bottom: 50%;
left: 10px;
background-size:60px;
cursor: pointer;
}
.s7carouselviewer.s7mouseinput .s7panleftbutton {
width:60px;
height:60px;
margin-bottom: -20px;
}
.s7carouselviewer.s7mouseinput .s7panleftbutton[state] {
background-image: url(../../viewers/s7viewers/html5/images/v2/CarouselDotsLeftButton_dark_sprite.png);
}
.s7carouselviewer.s7mouseinput .s7panleftbutton[state='up'] { background-position: -0px -60px; }
.s7carouselviewer.s7mouseinput .s7panleftbutton[state='over'] { background-position: -0px -0px; }
.s7carouselviewer.s7mouseinput .s7panleftbutton[state='down'] { background-position: -0px -0px; }
.s7carouselviewer.s7mouseinput .s7panleftbutton[state='disabled'] { background-position: -0px -60px; }