Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS 1920px slider images centred

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #39151
    Anonymous
    Inactive

    I have a slider that contains images that are 1920px wide.
    However, if the users screen is narrower that the images they need to be centred and the overflow set to be hidden.
    This doesn’t sound hard, but for some reason I can¨t pull this off.
    Please help me! :)
    http://jsfiddle.net/zBNUm/

    #107111
    TheDoc
    Member

    If you set the image as a background on the slide, you can just position it via CSS http://codepen.io/ggilmore/pen/oaFJL

    #107112
    Anonymous
    Inactive

    Since I have a slider for wordpress where each image is wrapped withing an img tag, this won’t work. However, if someone knew a WordPress jQuery plugin slider that uses background images instead of , it would solve my problem :)

    #107114
    TheDoc
    Member

    You should be able to edit the code. Other than that you can do this: http://codepen.io/ggilmore/pen/oaFJL

    #107117
    Anonymous
    Inactive

    That doesn’t solve my problem since I can’t use the “background-image” technique :)

    #107118
    TheDoc
    Member

    Did it not update for you? Try giving it a hard refresh. I switched it to image-based.

    #107270
    Anonymous
    Inactive

    It did update now, thank you for the help! :)

    #124594
    zbysek
    Member

    Hi. I have the same problem, but your code at http://jsfiddle.net/zBNUm/ doesnt work.

    Could you please help me? Did you update that code?

    #124599
    Paulie_D
    Member

    @zbysek

    Please start a new thread and post a link or code in Codepen

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘1920px slider images centred’ is closed to new replies.