You’ll need CSS. If you’re writing your date into a div with id=”date”, then:
#date{
margin: 0px auto;
text-align: center;
}
should do. This is assuming you have no other elements above the div.
But if there are other elements coming before it, then you will have to add a position attribute and specify a distance from the top.
#date{
margin: 0px auto;
text-align: center;
position: fixed;
top: 0;
}
CLICK HERE to find out more related problems solutions.