Getting the button into the top right corner inside the div box

The Solution to Getting the button into the top right corner inside the div box is


Just add position:absolute; top:0; right:0; to the CSS for your button.

 #button {
     line-height: 12px;
     width: 18px;
     font-size: 8pt;
     font-family: tahoma;
     margin-top: 1px;
     margin-right: 2px;
     position:absolute;
     top:0;
     right:0;
 }

jsFiddle example

~ Answered on 2013-09-11 20:40:58


Most Viewed Questions: