HTML CSS center a paragraph
<div> <p id="clock"></p> <p id="time"></p> </div> I have two paragraphs. The first one (analog clock) has a fixed position on my page. I'd like to fix the second one (containing digital clock representation of the clock that is above) below the analog clock. The length of the text is changing, so I would like to center it between side margins so that its horizontal center matches the above clock's center. How should I do that? Thanks in advance.