title: Javascript changing marginTop attribute not working in Firefox for XHTML 1.0 Transitional
body: <p>Yesterday I moved CultureRater.com across to XHTML 1.0 Transitional and while the javascript below works in Safari and Chrome, it's not working in Firefox. Anyone got any ideas? If u need a better impression of the problem then visit the site in FF and go <a href="http://www.culturerater.com/film/" rel="nofollow noreferrer">here</a> and try pressing the white arrow on the right (the genres should change).</p>
  
  <pre><code>var i=-2;
  function film_button_right() {
    i--;
    document.all.nav_genres.style.marginTop=i*48 + 'px';
    document.all.left_categories_arrow.style.display="block";
    if(i==-3){
      document.all.right_categories_arrow.style.display="none";
    }
  }
  function film_button_left() {
    i++;
    document.all.nav_genres.style.marginTop=i*48 + 'px';
    document.all.right_categories_arrow.style.display="block";
    if(i==0){
      document.all.left_categories_arrow.style.display="none";
    }
  }
  </code></pre>
  
  <p>Thanks for any help in advance. Theo.</p>