I created a simple flash animation to work like a slideshow on the front page of my website. Because the container was 640 by 500 with a padding of 10 px all around, I made the
The <div class="mainspace">
Is actually 620x480 (not 640x500, as you said), with a padding of 10px. This makes the actual area of the <div>
600x460, since padding is on the inside, so you are overflowing.
Change
.mainspace {
width:620px;
height:480px;
...
to
.mainspace {
width:640px;
height:500px;
...
The DIV with the class mainspace has a left margin of 160px; is that what you mean?