www.webdeveloper.com
Results 1 to 2 of 2

Thread: Centering parent div causes child div swf to be offset.

  1. #1
    Join Date
    Dec 2005
    Posts
    492

    Centering parent div causes child div swf to be offset.

    I have a Mac and a PC.

    Of the two, only my Mac presents this problem.

    Of the Mac browsers I have (numerous), only Firefox presents this problem.

    What I'm doing ...

    I'm embedding JWPlayer using SWFObject like so:

    Code:
    swfobject.embedSWF("rnd/media/player.swf", "audioC", "413", "24", "9.0.0", "expressInstall.swf", {volume:"0", backcolor:"#2c2002", frontcolor:"#ccc283", lightcolor:"#e46a3c", screencolor:"#4c4426"}, {bgcolor:"#2c2002", menu:"false", allowscriptaccess:"samedomain"}, {id:"audioC", name:"audioC"});
    When my primary parent div has no CSS code designating it's margins, all is well.

    When I set it to "margin: auto;" (to center the div on the page) an extra pixel of space appears to the left of my embedded swf file.

    I opted to leave this issue alone for months but now, it seems like it's the loudest problem on my page LOL.

    My url: http://www.RobinDean.com/ ... have a look.

    What's the solution?

  2. #2
    Join Date
    Dec 2005
    Posts
    492
    Okay ... so this is an old bug.

    It's an old bug that I already researched in the past.

    Duh.

    Those college years really kill more brain cells than they flex!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles