Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

Custom responsive image slider

Options
  • 07-06-2014 3:30pm
    #1
    Registered Users Posts: 147 ✭✭


    Hey, Ive attached an image of an image slider that i need to create but I am new to web design and dont know exactly how i can make it. Would somebody help me with this?

    VBuIPsN.jpg?1?4391

    the logo and image slider are binded together in a container or something so they are always side by side and the navigation button on the slider are on the outside, not lying on the images. I would need it to be responsive too. Would really appreciated the help, thanks.


Comments

  • Registered Users Posts: 1,029 ✭✭✭John_C


    I can't see the attached image. I think it's only visible to members of webdesignforums.


  • Registered Users Posts: 147 ✭✭jdunne08


    John_C wrote: »
    I can't see the attached image. I think it's only visible to members of webdesignforums.

    damn, i never knew that. Thanks for letting me know. Heres the image: http://i.imgur.com/VBuIPsN.jpg?1?4391

    any ideas to what i can do?


  • Registered Users Posts: 1,029 ✭✭✭John_C


    How new are you to web development?
    There are two parts to what you want. Firstly you'll need to write up the html & css to match your design (static logo, responsive etc...). After that, you'll need to pick a javascript image slider to add. I recommend this one but there are loads of options.


  • Registered Users Posts: 147 ✭✭jdunne08


    John_C wrote: »
    How new are you to web development?
    There are two parts to what you want. Firstly you'll need to write up the html & css to match your design (static logo, responsive etc...). After that, you'll need to pick a javascript image slider to add. I recommend this one but there are loads of options.

    im only doing this a few weeks, my second site. this is a template im working on : http://testjd.net46.net/ (just for testing, not final images)

    if you resize the browser window you will see that the imageslider overlaps the logo and isnt responsive. i want to make some sort of container where i can put the logo and image slider in there and put it in the center so they never overlap and are always by each others side and bang in the center all the time.

    Ive tried a 100 times with what ive made so id like to rip out the slider and start again coz im doing something wrong.


  • Registered Users Posts: 1,029 ✭✭✭John_C


    Thanks,
    You seem to have your slider working correctly. I'm not familiar with that one so I don't know whether it will fit your responsive design.
    Your HTML and CSS are fairly messy though. I've uploaded a demo at this link showing what you should probably be aiming for:

    http://jtcraddock.ie/boards/


  • Advertisement
  • Registered Users Posts: 147 ✭✭jdunne08


    John_C wrote: »
    Thanks,
    You seem to have your slider working correctly. I'm not familiar with that one so I don't know whether it will fit your responsive design.
    Your HTML and CSS are fairly messy though. I've uploaded a demo at this link showing what you should probably be aiming for:

    http://jtcraddock.ie/boards/

    John..Thanks alot! that is exactly what i need. I just tried to put the jquery js on the slider and now its not responsive (I think this was part of my prolem all along), but is "The Bird/Swipe" that you recomended responsive and how can I add it to this code you gave me?


  • Registered Users Posts: 1,029 ✭✭✭John_C


    The instructions and API are at the git link here:
    https://github.com/thebird/Swipe

    I updated the demo on my site (http://jtcraddock.ie/boards/) with the slider or you can see a more complete version from one of my work projects here: http://jtcraddock.ie/demo/demo2.html

    Earlier in the year, I spent a few days testing different javascript/jQuery sliders to get a good responsive one. This is the best one I've found.


  • Registered Users Posts: 147 ✭✭jdunne08


    John_C wrote: »
    The instructions and API are at the git link here:
    https://github.com/thebird/Swipe

    I updated the demo on my site (http://jtcraddock.ie/boards/) with the slider or you can see a more complete version from one of my work projects here: http://jtcraddock.ie/demo/demo2.html

    Earlier in the year, I spent a few days testing different javascript/jQuery sliders to get a good responsive one. This is the best one I've found.

    Your the man, this is what i need, thanks alot. One more thing, I been trying to make your slider center dead in the middle of the page both vertically and horizontally but I can seem to get it, what do I need to do?

    Nice site too by the way.


  • Registered Users Posts: 1,029 ✭✭✭John_C


    You want margin:auto for that:
    http://jtcraddock.ie/boards/centred.html

    You can also use viewport units but they're not implemented in all devices.


  • Registered Users Posts: 147 ✭✭jdunne08


    John_C wrote: »
    You want margin:auto for that:
    http://jtcraddock.ie/boards/centred.html

    You can also use viewport units but they're not implemented in all devices.

    ive been trying margin: auto but no luck and i just copied the code from that link but nothing, check out this jsfiddle : http://jsfiddle.net/gZDVL/14/

    i added
    html, body{
    width:100%;
    height:100%;
    margin:0;
    }
    and

    position:absolute;
    margin:auto;
    top:0;
    bottom:0;
    left:0;
    right:0;
    to the #logo-and-slider


  • Advertisement
  • Registered Users Posts: 1,029 ✭✭✭John_C


    set the height as well, adding height:200px to your fiddle roughly fixes it.


  • Registered Users Posts: 147 ✭✭jdunne08


    John_C wrote: »
    set the height as well, adding height:200px to your fiddle roughly fixes it.

    John I dont mean to bother you again but im trying to add 3 buttons or text links underneathe the "Logo" but they are going above the "Slider" and pushing the slider downwards. any suggestions on how i can add some buttons under the logo that will respond and re-scale accordingly?


  • Registered Users Posts: 1,029 ✭✭✭John_C


    jdunne08 wrote: »
    John I dont mean to bother you again but im trying to add 3 buttons or text links underneathe the "Logo" but they are going above the "Slider" and pushing the slider downwards. any suggestions on how i can add some buttons under the logo that will respond and re-scale accordingly?
    The first step is to wrap the image in another element (typically a <div>). Move the layout styling from the image to that element (float:left; width:whatever).
    Once you have that behaving correctly, you can add whatever you want into the new element; buttons or whatever.


Advertisement