This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

When I add a border to the swf object, it shrinks the swf by the border width x2.

  • 3 cavab
  • 6 have this problem
  • 1 view
  • Last reply by kn00tcn

more options

When I add a 5px border to the swf container/object, it shrinks the object by 10px (height and width). This is happening in both Mac and PC Firefox 3.6.3. The PC versions of 3.0.15 and 3.5.9 ignore the border style. All other browsers tested so far are displaying it correctly...Safari (Mac & PC), IE6, IE7, IE8, Opera (Mac & PC), and Chrome (Mac & PC).

This happened

Every time Firefox opened

User Agent

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

When I add a 5px border to the swf container/object, it shrinks the object by 10px (height and width). This is happening in both Mac and PC Firefox 3.6.3. The PC versions of 3.0.15 and 3.5.9 ignore the border style. All other browsers tested so far are displaying it correctly...Safari (Mac & PC), IE6, IE7, IE8, Opera (Mac & PC), and Chrome (Mac & PC). == This happened == Every time Firefox opened == User Agent == Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

All Replies (3)

more options

I should add that I am using swfobject2.1 javascript code for the Flash.

more options

A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the MozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

You need to post a link to the website or relevant parts of the code.

more options

i just ran into this, ended up just surrounding the whole <div id="flashcontent"> with another div that had the border, seems to work just fine

also dont forget to put object{display:block} in your css to remove the little gap underneath it

Modified by kn00tcn