Need help with image slider please :)

Discussion in 'HTML & Website Design' started by Anthony1994, Dec 12, 2010.

  1. #1
    On my website; http://reward9.com/
    I have an image slider. It's too low and I need to change the css to bring it up.

    Here is the CSS code:

    Code:

    <style type="text/css">
    body {
    margin: 0; padding: 0;
    font: normal 10px Verdana, Arial, Helvetica, sans-serif;
    }
    *{outline: none;}
    img {border: 0;}
    .container {
    width: 790px;
    padding: 0;
    margin: 0 auto;
    }
    .folio_block {
    position: absolute;
    left: 50%; top: 100%;
    margin: -140px 0 0 -395px;
    }


    /*--Main Container--*/
    .main_view {
    float: left;
    position: relative;
    }
    /*--Window/Masking Styles--*/
    .window {
    height:286px; width: 790px;
    overflow: hidden; /*--Hides anything outside of the set width/height--*/
    position: relative;
    }
    .image_reel {
    position: absolute;
    top: 0; left: 0;
    }
    .image_reel img {float: left;}

    /*--Paging Styles--*/
    .paging {
    position: absolute;
    bottom: 40px; right: -7px;
    width: 178px; height:47px;
    z-index: 100; /*--Assures the paging stays on the top layer--*/
    text-align: center;
    line-height: 40px;
    background: url(paging_bg2.png) no-repeat;
    display: none; /*--Hidden by default, will be later shown with jQuery--*/
    }
    .paging a {
    padding: 5px;
    text-decoration: none;
    color: #fff;
    }
    .paging a.active {
    font-weight: bold;
    background: #920000;
    border: 1px solid #610000;
    -moz-border-radius: 3px;
    -khtml-border-radius: 3px;
    -webkit-border-radius: 3px;
    }
    .paging a:hover {font-weight: bold;}
    </style>

    I'd greatly appreciate some help,
    thanks Anthony1994.

    Btw to make the image slider i use this tut;
    http://www.sohtanaka.com/web-design/automatic-image-slider-w-css-jquery/
     
    Anthony1994, Dec 12, 2010 IP
  2. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have this :

    .folio_block {
    position: absolute;
    left: 50%; top: 100%;
    margin: -140px 0 0 -395px;
    }

    You don't need to use position:absolute to put a block in the center of the page. Do these :

    1. Remove the <center> element.
    2. Remove the lots of <br> tags there.

    That will bring the sliders to almost correct position, but next you'll need to do some more adjustments.

    Do those and we'll see.
     
    developerpanda, Dec 12, 2010 IP
  3. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I added the code you said and removed the <br> tags and had no luck :(
    thanks for the reply though.
     
    Anthony1994, Dec 12, 2010 IP
  4. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anthony please pay attention.

    First remove :

    .folio_block {
    position: absolute;
    left: 50%; top: 100%;
    margin: -140px 0 0 -395px;
    }

    from your CSS file.

    Second delete the <center>,<br> tags from your HTML file.

    Do these two things first, save/upload and let me check. And then there will be more things to do before we can fix this 100%.
     
    developerpanda, Dec 12, 2010 IP
  5. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Also the <div id="facebook"> is not closed properly, do that too.
     
    developerpanda, Dec 12, 2010 IP
  6. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #6
    okay i did that and it helped a lot,. though i couldn't find the br tags and center tags
     
    Anthony1994, Dec 12, 2010 IP
  7. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #7
    what do i do with <div id="facebook">

    delete it?
     
    Anthony1994, Dec 12, 2010 IP
  8. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep already making difference. Those should be in the index.php code, can you paste the contents of index.php in some place like pastie.org and provide the link here?
     
    developerpanda, Dec 12, 2010 IP
  9. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    The <div id="facebook"> it seems like it is not closed properly. So you need to add a </div> for it in the proper place.
     
    developerpanda, Dec 12, 2010 IP
  10. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #10
    I deleted it, it's not needed
     
    Anthony1994, Dec 12, 2010 IP
  11. Anthony1994

    Anthony1994 Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #11
    thank-you for your help. you're very good at this
     
    Anthony1994, Dec 12, 2010 IP
  12. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    PS: If you add .folio_block { overflow:hidden; } then you can get rid of lots of <br> tags on the page.
     
    developerpanda, Dec 12, 2010 IP