5 Replies - 4954 Views - Last Post: 02 November 2010 - 04:12 AM

#1 kssulliv   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-January 09

firefox adding extra space after .swf file

Posted 01 November 2010 - 12:23 PM

Hi all,

I am having a problem with a new website I am working on. Everything looks good in IE, Chrome, and Opera but Firefox is adding an extra space after the .swf file on the main page (no other links are working yet). my website. Any help would be greatly appreciated.

Thank you for taking a look at this. :)

Is This A Good Question/Topic? 0
  • +

Replies To: firefox adding extra space after .swf file

#2 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4240
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: firefox adding extra space after .swf file

Posted 01 November 2010 - 12:59 PM

Hey.

There seems to be a PHP include error going on there right now so it's kind of hard to tell.

However, looking at what I can see of it, the bigger problem there would be that you are using a table for layout. This is not a good idea. You should be using CSS to position the elements on your site, not a table. - One of the reasons why is because of inconsistencies between how browsers render tables. The margins and padding can be way off. Might even be the cause of your problem.

If you aren't used to using CSS, try a Google search for pre-made CSS layouts. There are a LOT of them out there. (For example: this.)
Was This Post Helpful? 0
  • +
  • -

#3 kssulliv   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-January 09

Re: firefox adding extra space after .swf file

Posted 01 November 2010 - 01:32 PM

sorry that was an old attempt now if you visit my websiteit will show what I'm working on. I didn't realize I hadn't updated it, I appologize.

tables is the way my boss requested it so I'd prefer to fix just fix it instead of moving to css.

This post has been edited by kssulliv: 01 November 2010 - 01:30 PM

Was This Post Helpful? 0
  • +
  • -

#4 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4240
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: firefox adding extra space after .swf file

Posted 01 November 2010 - 02:59 PM

OK I see.

Try changing the way you add your Flash movie. The way you have it now Firefox will have two nested object tags, the inner one showing the movie. The outer one may be causing some padding/margins/white-spaces to be rendered before or after it though.

This version should work on all browsers. (IE6+, Firefox2+ and Chrome at least.)
<object 
	type="application/x-shockwave-flash" 
	data="indexmovie.swf" 
	width="272" height="280">
	<param name="movie" value="indexmovie.swf" />
	<param name="quality" value="high"/>
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
	<div>
        <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
</object>

See if that removes the space.
Was This Post Helpful? 0
  • +
  • -

#5 kssulliv   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-January 09

Re: firefox adding extra space after .swf file

Posted 01 November 2010 - 03:50 PM

Thank you so much!!! If fixed the problem perfectly. I really appreciate it :)
Was This Post Helpful? 0
  • +
  • -

#6 Shado3225   User is offline

  • D.I.C Regular

Reputation: 17
  • View blog
  • Posts: 325
  • Joined: 23-February 10

Re: firefox adding extra space after .swf file

Posted 02 November 2010 - 04:12 AM

Include this in your stylesheet (right at the top)

* {
	margin : 0;
	padding : 0;
}



You can also use this to set your general formatting like font family, text size, line hight and so on - that way you don't need to repeat it in other elements unless you want to change the values.

Oh and I'd listen to Atli about the tables... people get killed for less ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1