jquery - Styling multiple Countdown dates -


i want create page countdowns multiple events, somehow not format correctly ids number 12 , 13.

how looks:

enter image description here

code:

<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd"> <html>   <head>  <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>countdown</title> <link rel="stylesheet" href="jquery.countdown.css">  <style type="text/css"> #defaultcountdown { width: 240px; height: 45px; } </style>  <script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript" src="jquery.countdown.js"></script>  <script type="text/javascript"> $(function () {     $('#defaultcountdown').countdown({since: new date(2010, 12-1, 25)});      $('#12').countdown({since: new date(2011, 12-1, 25)});      $('#13').countdown({since: new date(2012, 12-1, 25)});  }); </script>  </head>   <body> <div id="defaultcountdown"></div> <div id="12"></div> <div id="13"></div> </body>   </html> 

if want them styled same, assign them class, , style class:

<style type="text/css"> .countdown { width: 240px; height: 45px; } </style> 

and

<body> <div id="defaultcountdown" class="countdown"></div> <div id="12" class="countdown"></div> <div id="13" class="countdown"></div> </body> 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -