Witam was wszystkich, mam mały problem a tak do rzeczy to nie wiem jak wyśrodkować tekst w moim programie, jest ktoś w stanie mi pomóc?
<body>
<div id="div1"></div>
<script>
//ustawianie ile czasu
var ile=60;
function stoper()
{
godzin=Math.floor(ile/3600);
minut =Math.floor(ile/60)%60;
sekund =ile%60;
document.getElementById('div1').innerHTML = ' Pozostało: '+sekund+' sekund :)';
ile--;
if(ile<0)
{
clearInterval(intervalHandler);
}
if(ile<0)
{
alert("Koniec czasu")
}
}
var intervalHandler=setInterval(stoper,1000);
</script>
</body>