• Resolved ezombie

    (@ezombie)


    I really like this plug-in, I’ve tried out on one site, and it worked great straight out of the box. Now I’m trying to push its limits in terms of responsive design and CSS in an adaptation of the twentytwelve theme. When I view the slideshow on a mobile phone the previous and next image buttons fall below the image. I think this will really confuse the user. I’m trying to figure out a way to style them so that they stay to the left and the right of the image instead of below it on mobile devices. Another option would be to convert the buttom images to horizontals instead of verticals and have them just below the slide. Any suggestions on how to control the placement of the images when the screen size shrinks to a smaller mobile size would be appreciated.

    http://wordpress.org/plugins/slideshow-jquery-image-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ezombie

    (@ezombie)

    O.K. so I managed to get the buttons to position a little better on mobile devices by changing the following code to from 50% to 30%, it’s not quite centered on the screen on desktop computers, but looks better on mobile devices.:

    .slideshow_container .slideshow_button {
        top: 30%;}

    I wish I could figure out a way to center it vertically and look perfect on all devices.

    Thread Starter ezombie

    (@ezombie)

    O.K. Now I would like to try and figure out a way to make the arrow previous and next buttons scale in size. I fooled around with changing the pixel height to percentages thinking that might do the trick like so:

    .slideshow_container .slideshow_button {
    	height: 17.4%;
    	width: 2.807%;
    	background: url('%plugin-url%/images/SlideshowPlugin/dark-arrows.png') no-repeat;
    }

    Unfortunately, when the page scales down to smaller devices, the arrow button just gets cut off and you can’t tell that there is anything there to click.

    My theory was the slideshow’s width is 855px and 24px is 2.807% of 855. Meanwhile the slideshows height is 755px at 100%. The button sized at 100px high would be 17.4% of 755.

    Is there something else that will scale the dimensions of the buttons? They are just too large on a phone and are covering up about a third of the image.

    I’m open to any suggestions.

    ________________________________________________________________

    Finally I would like to “Show title and description” permanently with “Hide description box, pop up when mouse hovers over” toggled to no. However I would like to format it so that my descriptions, which tend to be quite long, are displayed below the slideshow. Otherwise on a mobile device they cover the entire image. Is there anyway to position the description so it is visible below the slideshow container?

    I was thinking maybe “overflow: visible;” somewhere might do the trick. This stuff is really starting to push the limits of my CSS knowledge.

    You should look into media queries. They allow you to specify certain css styles based on the width of your device.

    For example, the navigation images could be positioned at 50% on desktop and 30% on mobile. You could even replace the arrows with a smaller arrow image for mobile.

    The basic format of media query is:

    @media (max-width: 1140px)  {
            /* Put CSS in here for any screen size smaller than 1140px */
    }

    Learn more about media queries here.

    Hope this helps!

    Thread Starter ezombie

    (@ezombie)

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Position Previous and Next Buttons for responsive design’ is closed to new replies.