Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2009
    Posts
    147
    Thanks
    3
    Thanked 22 Times in 22 Posts

    Object padding problems

    Hey Guys,

    I have a a flash object inside of <object> tags. I have it emebedded on a page however the text around it is too close. I need the object to have padding, however I cannot for the life of me get the padding to work.

    Here is the <object> stuff

    PHP Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
            
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" 
            
    id="beta_1" 
            
    width="280" height="345" align="left" border="1px" padding-left="35em" padding-right="35em" 
            <
    param name="movie" value="beta_1.swf"
            <
    param name="bgcolor" value="#FFFFFF"
            <
    param name="quality" value="high"
            <
    param name="menu" value="false"
            <
    param name="allowscriptaccess" value="samedomain"
            <
    embed 
              type
    ="application/x-shockwave-flash" 
              
    pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
              
    name="beta_1" 
              
    width="280" height="345" 
              
    src="beta_1.swf" 
              
    bgcolor="#FFFFFF" 
              
    quality="high" 
              
    menu="false" 
              
    allowscriptaccess="samedomain"
              <
    noembed
              </
    noembed
            </
    embed
          </
    object

  • #2
    Regular Coder Kristofa's Avatar
    Join Date
    Jun 2009
    Location
    Leicester
    Posts
    143
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Padding is a CSS style, which means it must be inlcuded inside a style attribute. As far as I know it isn't a html attribute in it's own right.

    Try this:
    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  
    id="beta_1"  
    width="280" height="345" align="left" style="border:1px;padding-left:35em; padding-right:35em;" >
    Last edited by Kristofa; 06-11-2009 at 12:53 PM. Reason: IE screwed the BBCode up.

  • #3
    Regular Coder
    Join Date
    Jun 2009
    Posts
    147
    Thanks
    3
    Thanked 22 Times in 22 Posts
    Cheers, put it into a CSS file and working now


  •  

    Posting Permissions

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