#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2004
    Posts
    979
    Rep Power
    11

    give object a transparent background


    Hi,

    I have the following object tag, but it has a white background. Is it possible to give it a transparent background?

    PHP Code:
    <object data="page.html" type="text/html"></object
    Thanks!
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Location
    Adelaide - Australia
    Posts
    63
    Rep Power
    3
    You could try one of these two.

    The "red" (#ff0000) is only to see if it's effective as a string.

    <object style="background-color: #ff0000; width: 100%; height: 100%;" data="page.html" type="text/html"></object>

    <object style="background-color: transparent; width: 100%; height: 100%;" data="page.html" type="text/html"></object>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2014
    Location
    bnangalore
    Posts
    8
    Rep Power
    0
    these object are converted into images,then maybe we can insert background objects..
  6. #4
  7. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,187
    Rep Power
    184
    Use the "wmode" attribute, in your object tag and give it a value of "transparent".

IMN logo majestic logo threadwatch logo seochat tools logo