I don't know why the css didn't work, but the clock works so it's good enough.