Hi Guys.
I'm new to CSS and styling for different browsers, so with that in mind, here's my problem.
I have a countdown script which looks like this:
HTML:
Which calls style.css which looks like this:
In Safari, the Countdown is styled nicely:
In Firefox it looks like this (which doesn't particularly look nice):
My question is: Why?
Any help is greatly appreciated.
Thanks again,
Arron
I'm new to CSS and styling for different browsers, so with that in mind, here's my problem.
I have a countdown script which looks like this:
HTML:
Code:
<font size="6" color="#aa4976" face="Verdana">
<center>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="" />
<meta name="keywords" content="48, Hour, Sale, Worldwide" />
<title>48 Hour Sale</title>
<link rel="stylesheet" href="stylesheets/style.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="images/favicon.ico" />
</head>
<body class="winner">
<div class="container">
<div class="result">
<h1 id="value" class="val"></h2>
</div>
<div class="footer">
<span></span><br/>
<span><a href=""><img src="" alt="" /></a></span>
</body>
<script type="text/javascript">
var count = 1036000;
var step = 6;
function split_thousands(s, sep) {
if (s.length <= 10) return s;
return split_thousands(s.substr(0, s.length - 3), sep) + sep + s.substr(s.length - 3, 4);
}
function counter() {
count += Math.round(step * -0.1);
document.getElementById("value").innerHTML = split_thousands(count+'', ",");
setTimeout("counter()", 0);
}
counter();
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("");
pageTracker._trackPageview();
} catch(err) {}</script>
</html>
</center>
</font>
Which calls style.css which looks like this:
Code:
{
border: 0;
margin: 0;
padding: 0;
}
body{
color: #a94a76;
font: 50px Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
}
In Safari, the Countdown is styled nicely:

In Firefox it looks like this (which doesn't particularly look nice):

My question is: Why?
Any help is greatly appreciated.
Thanks again,
Arron