Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

My website renders differently in Forefox; white space is added around my recently added flash movies. I've added the display:block to the objects but this doesn't quite fix it. Any ideas? www.jamescartledge.co.uk

  • 3 ответа
  • 15 имеют эту проблему
  • 1 просмотр
  • Последний ответ от AnonymousUser

more options

I've recently added 3 new flash movies to my site which is a basic HTML site. Dreamweaver codes this differently in CS4 and Firefox seems not to like it; it adds white space around the movies. I've added display:block to the swf objects but this doesn't completely cure the problem – it also makes the site explode in DW. The site is at: http://www.jamescartledge.co.uk. Any suggestions?

This happened

Every time Firefox opened

== I uploaded the new images; a fortnight ago

I've recently added 3 new flash movies to my site which is a basic HTML site. Dreamweaver codes this differently in CS4 and Firefox seems not to like it; it adds white space around the movies. I've added display:block to the swf objects but this doesn't completely cure the problem – it also makes the site explode in DW. The site is at: http://www.jamescartledge.co.uk. Any suggestions? == This happened == Every time Firefox opened == I uploaded the new images; a fortnight ago

Все ответы (3)

more options
more options

You can use object if you use object instead of embed to avoid adding white-space (object is a block element). I'm not seeing your issue on Linux. Can you post a steps to go to a specific page and maybe add a screenshot?

more options

Hi cor-el,

thanks for this, although I've added the display:block to avoid Firefox adding the descender space beneath the imaginary baseline. Before I did this there were gaps above and below the swf totalling about 7 px - there is now about a 1 px gap above.

I've recoloured the background to the flash movie dark grey on the index, portfolio and contact pages so the space is less visible. The 'what's new' page uses the code that Dreamweaver added a couple of years ago and it works fine. Would it help if I recolour the background so you can see more clearly?

Unfortunately I'm quite dependent on DW to insert code. I built the site a while ago, and the latest version of DW adds considerably more code than it used to when I insert a flash movie. It does use object tags rather than embed tags, but you'll see that the what's new page (original code) works fine.

What's going on??

PS congrats on 79000 posts. Holy crap.