SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot PenGwnFistOfFury's Avatar
    Join Date
    Feb 2005
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dropshadow on HTML text

    How do you apply a dropshodow using css on html text?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There was a text-shadow property in CSS2, but browser support is virtually non-existent and it has been removed from CSS2.1.

    In short: you can't.
    Birnam wood is come to Dunsinane

  3. #3
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool

    IE proprietary code, not standard/valid CSS, and I'm sure someone is going to shoot me even for mentioning it :
    Code:
    filter:DropShadow (Color=#000000, OffX=5, OffY=5, Positive=true);
    ... but works for a huge majority of browsers out there

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Bang

  5. #5
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think Safari supports the CSS3 text-shadow property.
    Simon Pieters

  6. #6
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, shot by the Sheriff
    Quote Originally Posted by Paul O'B
    Bang

  7. #7
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by zcorpan
    I think Safari supports the CSS3 text-shadow property.
    That's right. Never used it myself, but I see a lot of standards-compliant designers on Macs using it.


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
  •