Why is my swf taking up more space than it actually is?

前端 未结 2 347
悲哀的现实
悲哀的现实 2021-01-26 13:07

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

相关标签:
2条回答
  • 2021-01-26 13:40

    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;
      ...
    
    0 讨论(0)
  • 2021-01-26 13:41

    The DIV with the class mainspace has a left margin of 160px; is that what you mean?

    0 讨论(0)
提交回复
热议问题