Chase Milhorn Chase Milhorn - 2 months ago 10
CSS Question

What languages should I use to allow users to increase or decrease an image size on a webpage?

I am interested in having +/- buttons to increase and decrease the size of an image. What programming languages could I use, and what would be the pros/cons for using each one? I apologize for my incredibly novice questions.


Bored, so I decided to build this simple stuff for ya! Please buy be a beer. HTML:

    <img src=""><br>
    <span id="plus">+</span><br>
    <span id="minus">-</span>


    $("img").css({"height": "+=50px", "width": "+=50px"});

    $("img").css({"height": "-=50px", "width": "-=50px"});