Centering Banner Slider In Magento

Discussion in 'CSS' started by lllpumaslll, Jan 21, 2013.

  1. #1
    I'm trying to center the banner slider of this website http://www.myusedwheel.com, but it's not centering correctly. When I open the website it a wide screen, the image stays in the same positions and it doesn't center properly.

    My current css code is:
    <style type="text/css">
    #slider{
        margin-left: 195px !important;
        overflow: hidden;
        position: absolute;
        top: 192px;
        width:960px!important;
        height:173px !important;
    }
     
    #navigation{
    position:relative;
    z-index:999;
    }
    .header-container{
    height:385px;
    }
    #controls{
    display:none;
    }
    </style>
    Code (markup):

     
    lllpumaslll, Jan 21, 2013 IP
  2. OaldDesign

    OaldDesign Active Member

    Messages:
    448
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    In what browser you see that error? i tried viewing it in firefox and Chrome but i don't see that problem. for some reason i can't enter the site on explorer i am getting error so you should check that.
     
    OaldDesign, Feb 9, 2013 IP
  3. hasanoben

    hasanoben Active Member

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    90
    #3
    Well.. I guess you changed the css code and made margin auto on left and right.
    I was gonna suggess that, it seems good to me.
     
    hasanoben, Feb 12, 2013 IP
  4. muffet

    muffet Active Member

    Messages:
    720
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    68
    #4
    Not seeing the issue you describe in latest version of Firefox. Have you checked your site in all the top browsers; Chrome, Firefox, Opera, IE, Safari, Rockmelt, etc and the earlier versions of each browser?
     
    muffet, Feb 15, 2013 IP
  5. lllpumaslll

    lllpumaslll Well-Known Member

    Messages:
    346
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #5
    I had fixed the issue before oalddesign replied.
     
    lllpumaslll, Feb 25, 2013 IP