Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

responsive images

  • 05-01-2013 05:26PM
    #1
    Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭


    Hi guys, am trying to make my images shrink scale themselves down so the website displays correctly, am using a flexi box webkit for the main website and was wondering how do i get the images to scale? is it css or should i be looking at some jquery?


Comments

  • Registered Users, Registered Users 2 Posts: 2,559 ✭✭✭KonFusion


    This might be of use.
    http://css-tricks.com/which-responsive-images-solution-should-you-use/

    Alternatively, I'd ask for a link to the site and the specific images.

    If you don't feel like sharing the site, share an example via codepen or something.

    I find it sometimes hard to give arbitrary advice on a specific requirement.


  • Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭off.the.walls


    i'm recoding my own site into a html5 site www.wmdmedia.ie when the sites viewed on a phone the images go 2 up 2 down on a phone

    want to get it so as they display straight across


  • Registered Users, Registered Users 2 Posts: 2,559 ✭✭✭KonFusion


    So what you want is the 4 #buttons to display horizontally on a phone, rather than vertically?

    At the moment it's like this: (img will expire in 3 days Edit: or sooner, apparently :P)

    1299234?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&Expires=1357405758&Signature=E8unFmiCCrfdUTrJyaBhDD4xojo%3D

    So you want them to all be inline?

    Like this:

    1299254?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&Expires=1357406124&Signature=rXfVmtz2Hb3VBIBVd1gPUbvYCws%3D

    Excuse the rest of the content in the image above. As you can see in the above image it displays differently on a phone, I'm using it purely for illustration.


  • Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭off.the.walls


    KonFusion wrote: »
    So what you want is the 4 #buttons to display horizontally on a phone, rather than vertically?

    At the moment it's like this: (img will expire in 3 days)

    1299234?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&Expires=1357405758&Signature=E8unFmiCCrfdUTrJyaBhDD4xojo%3D

    So you want them to all be inline?

    Like this:

    1299254?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&Expires=1357406124&Signature=rXfVmtz2Hb3VBIBVd1gPUbvYCws%3D

    Excuse the rest of the content in the image above. As you can see in the above image it displays differently on a phone, I'm using it purely for illustration.



    exactly!! and the rest of the content to squeeze down with it.

    how did you get it to display like that?


  • Registered Users, Registered Users 2 Posts: 2,559 ✭✭✭KonFusion


    exactly!! and the rest of the content to squeeze down with it.

    how did you get it to display like that?

    #buttons img {
    max-width: 69px; *
    padding-left: 6px; **
    }

    #buttons {
    position: relative;
    padding: 30px 0px 25px 0px;
    max-width: 100%;
    }


    It's not a proper solution though as the images aren't responsive, I just made them smaller to fit in the container, so to emulate that and also make them responsive, make the changes below, and tweak it to suit your needs.

    * So change that to max-width: 22%;
    ** And that to 1%; (or 2%, can't remember now)

    Remember, em's and %'s are your friend. Not px's


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 94 ✭✭_ciaran_


    If your redesigning you should check out http://www.responsivegridsystem.com/

    I find it to be a very straightforward way of making things responsive.


  • Registered Users, Registered Users 2 Posts: 125 ✭✭ivanc


    Combining Whartman's Base framework with the Responsive Slide .js should give you the result you're looking for.

    http://matthewhartman.github.com/base/

    http://responsive-slides.viljamis.com/


Advertisement