Results 1 to 3 of 3

Thread: CSS filter not working

  1. #1
    Join Date
    Feb 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS filter not working

    i tried out various css filter examples as shown in some of the websites. But i'm unable to see the desired result.

    html code is as follows :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .shadow {
    height: 1em;
    filter: Shadow(Color=#666666,
    Direction=135,
    Strength=5);
    }

    -->
    </style>
    </head>

    <body>
    <span class="shadow">PRIORI</span>

    </body>
    </html>

    What is possibly going wrong. My IE version is6

    Pls help

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    hello usp, welcome to the forums

    Please review our Posting Policies especially in regards to posting computer code #8


    you shouldn't be using XHTML as IE doesn't support the format, you are really just parsing invalid HTML.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    look into the 4.01 Strict DOCTYPE
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    now as for your problem, I am not well versed in filters, however I know that they are proprietary to Microsoft and will only work on IE type browsers. whitespace should not matter, but try putting the declaration all on the same line
    Code:
    span.shadow {
         height: 1em;
         filter: Shadow(Color=#666666,Direction=135,Strength=5);
    }

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Start here which lists all parameters for said filters.

    Second is WHY? It is ONLY supported by IE, and most heinously at that.

    Edit:
    Beat me too it Boogyman.. my apologies.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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