I have a div containing an image, I need to put a button inside the image around the upper right corner of the image when I do this
#button_id{ position: relative; left: 270px; top: 30px; }
What this does is to place the image of the button somewhere else, it moves the image left and right, but now the button has the ability to click in the bar, from where it was originally placed in the far right corner of the div. When i try this
#button_id{ position: relative; float: right; padding: 0px -40px -15px; }
it moves the button to the right, but does not move it down.
Note: the button is inside the div, without css it is placed on top of the image in the center.
Kevin source share