Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm looking for some way to have the prev/next controls as simple arrow graphics that overlay the images.
Is this possible?
Thanks for the time and any insight.
Comment | File | Size | Author |
---|---|---|---|
#5 | arrow-next.png | 1.28 KB | klucid |
#5 | arrow-prev.png | 1.3 KB | klucid |
Comments
Comment #1
sumerokr CreditAttribution: sumerokr commentedHi man!
yes, its possible, just use css.
for ex.: use position: absolute for prev/next
Comment #2
thinguy CreditAttribution: thinguy commentedI'm better a Google'ing than I am at CSS so from piecing together various info here is my solution.
Open to any critiques or problems you see this may cause.
This is moving the bottom (previous/pause/next) text off the screen and replacing them with left/right arrows on the edges of my slideshow.
Thanks.
#views_slideshow_controls_text_previous_quote_header_block-block a:hover {
background-image: url(../images/previous-button.png);
height: 90px;
width: 60px;
position: absolute;
top:20px;
left: -10px;
z-index: 999;
white-space:nowrap;
text-indent: -9999px;
}
#views_slideshow_controls_text_previous_quote_header_block-block a {
background-image: url(../images/button-blank.png);
height: 90px;
width: 60px;
position: absolute;
top:20px;
left: -10px;
z-index: 999;
white-space:nowrap;
text-indent: -9999px;
}
#views_slideshow_controls_text_next_quote_header_block-block a:hover {
background-image: url(../images/next-button.png);
height: 90px;
width: 60px;
position: absolute;
top:20px;
left: 900px;
z-index: 999;
white-space:nowrap;
text-indent: -9999px;
}
#views_slideshow_controls_text_next_quote_header_block-block a {
background-image: url(../images/button-blank.png);
height: 90px;
width: 60px;
position: absolute;
top:20px;
left: 900px;
z-index: 999;
white-space:nowrap;
text-indent: -9999px;
}
#views_slideshow_controls_text_pause_quote_header_block-block a:hover {
/* Pause doesn't need a graphic since any hover of the image automatically pauses, so this just moves the "pause" out of the way */
/*background-image: url(../images/next-button.png);
height: 90px;
width: 60px;
top:20px;
left: 450px;
z-index: 999; */
position: absolute;
white-space:nowrap;
text-indent: -9999px;
}
#views_slideshow_controls_text_pause_quote_header_block-block a {
/*background-image: url(../images/button-blank.png);
height: 90px;
width: 60px;
top:20px;
left: 450px;
z-index: 999; */
position: absolute;
white-space:nowrap;
text-indent: -9999px;
}
Comment #3
redndahead CreditAttribution: redndahead commentedComment #5
klucid CreditAttribution: klucid commentedI know this is an old thread, but I wanted to share my solution. It's a simplified version of thinguy's, but more importantly, it has a larger area for the user to hover (about half of the slideshow). So, if you were to hover over the entire right side of the slideshow, you would see the next arrow.
Also included my next/previous arrows.
Modify your pixels accordingly: