In general, there is a small page, it is necessary that when you click on the button with id "knopka", the picture with id "kartinka" is moved 1 pixel to the right. How can this be implemented?

    1 answer 1

    This can be implemented on jquery

    $(window).load(function () { $("#knopka").click(function () { $("#knopka").animate({ marginLeft: "1px" }, 1500); }); }); 
    • Thank. Only one question, 1500 - is the execution time of the move? If yes, then in milliseconds? - phan
    • Yes, this is the execution of the move in milliseconds. - OverLoader
    • Is it possible to make it so that the value of margin-left is recorded in <style> </ style>, and the changes are not lost after the update of the download? - phan