Inherit position from DIV custom code clock

Hi there,
I was wondering if somebody could help me out. I am trying to make a clock for my website, I basically have the java now, but I would like to position that element inside the blue shape so basically it gets repositioned on the page as if you fix the position of a widget on readymag and also to be able to hide that element in certain pages. Does anyone know how to do this? I have tried placing the custom code divs inside a div with the ID of the blue shape but it doesn’t work.

Thanks!