#1
  1. Application is what Divides Us
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Dec 2002
    Location
    Titusville, FL
    Posts
    2,179
    Rep Power
    58

    CSS filter application to images?


    PHP Code:
    <img... style="filter: shadow(color=#000000);"
    would that work? or should I set it up with javascript

    PHP Code:

     
    if (document.images)

     
    document.images.style "filter:shadow(color=#000000);" 
    i don't know how to set up the filter so that it works correctly..
    Download [ Fx | Op ] Validate [ Markup | Css ]
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    city of sin, state of the art
    Posts
    421
    Rep Power
    0
    thats the right code...


    not sure if imgs like shadows...?


    anyway good lucky!!
    "I hate quotations."
    -ralph waldo emerson-
  4. #3
  5. Application is what Divides Us
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Dec 2002
    Location
    Titusville, FL
    Posts
    2,179
    Rep Power
    58

    okay.. the code works...


    how do I offset the shadow so that it appears to the right and bottom of the img?

    i only see the shadow before the images load, but once the do no more shadow because the img covers it up...

    [update]

    nevermind... i applied the filter to the entire table rather than the img itself, and voila! a shadow.. but the question remaines how to offset the shadow?
    Last edited by jsKid; December 19th, 2003 at 05:28 PM.
    Download [ Fx | Op ] Validate [ Markup | Css ]
  6. #4
  7. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    Here is a tutorial that might help you. Remember that filters are an MS proprietary extension set and don't work on other browsers.

    cheers,

    gary
    Last edited by kk5st; December 20th, 2003 at 03:50 AM.
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.
  8. #5
  9. Application is what Divides Us
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Dec 2002
    Location
    Titusville, FL
    Posts
    2,179
    Rep Power
    58

    thanks...


    i didn't know that filters only applied to MS IE...

    i read through the page that you suggested but did not find out how to apply the dropshadow filter to the top/bottom/right side of an image/text...

    anybody have an idea?

    thanks again for the help so far..
    Download [ Fx | Op ] Validate [ Markup | Css ]

IMN logo majestic logo threadwatch logo seochat tools logo