Trouble with absolute positioning

im following this tutorial word for word,

but i cant get my x(close button) to be absolute positioning at the corner of the form? what is wrong?

edit: i think i figured out what is wrong, the div holding the form is expanding to the edge of the page, how would i have it constrain to the limits of the form?

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

i solved the problem with this short video if anyone has experienced similar problems