SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2011
    Posts
    87
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Responsive slider

    Hello
    I've been trying to use 2 different sliders (bxslide and responsiveslides) and both of them appear on the left side of my website.
    I want them centered.. How I can fix it?
    Owner of uReviews & MovieDB - Movie Database

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,364
    Mentioned
    268 Post(s)
    Tagged
    5 Thread(s)
    Either the full code you're using or a link to your page would allow us to help without the need for a crystal ball.

    In the absence of that, have you tried margin: auto ?

    http://reference.sitepoint.com/css/margin

    When you use the value auto, you’re allowing the browser to calculate the margins for you automatically. In most cases, the calculated value will default either to zero or to the distance required to reach the parent element’s edge. In the case of a block element that has a specified width, left and right margins to which a value of auto is applied will be set to be equal. This will effectively center the element in the available space.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Normally you'd have the slider inside a container like a div that's already centered, or inside a centered wrapper. As TechnoBear says, we need to see something to help.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •