My clock ends up going on the top left corner of my page, and I want it to go to the top right. Here is my code:

< 10) { i = "0" + i; } return i; }

1 answer

Steve 5

You need to either add some styling to the 'txt' element, probably "float:right", or you need to update the innerHTML of a different element that is on the right hand side of the page.

Difficult to be more specific without seeing your HTML/CSS.

If you want to float the txt element to the right then add

#txt {float:right}

to your CSS.

Answered almost 8 years ago by Steve