# Inherit position from DIV custom code clock

**URL:** <https://forum.readymag.com/t/inherit-position-from-div-custom-code-clock/3691>\
**Category:** Custom code\
**Created:** [October 10, 2024, 10:43am UTC](https://forum.readymag.com/t/inherit-position-from-div-custom-code-clock/3691 "2024-10-10T10:43:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maria\_Gonzalez](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/maria_gonzalez/32/2488_2.png) [@Maria\_Gonzalez](https://forum.readymag.com/u/Maria_Gonzalez)\
**Post date:** [October 10, 2024, 10:43am UTC](https://forum.readymag.com/t/inherit-position-from-div-custom-code-clock/3691/1 "2024-10-10T10:43:50Z")

</div>

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!

 ![Captura de pantalla 2024-10-10 a las 12.39.35](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/d/db5cbb142bc2c419c4eeb85dd7a27d3d3714c820.png)
