1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CSS Text Blur

Discussion in 'CSS' started by LGRComp, Jun 20, 2007.

  1. #1
    Well I have been given a challenge by a new client and I am stumped. What they want is to have a blurred shadow behind the text, sort of like a drop shadow but more blurred. This has to work on text not an image. I have found and done shadows on images, but never text. Is it possible with css? If not css maybe with a combination css, javascript, or maybe server side php?

    Thoughts?
     
    LGRComp, Jun 20, 2007 IP
  2. ninjamuk

    ninjamuk Peon

    Messages:
    305
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can kinda do it. I once used the effect on a nav of mine.

    You can create an elliptical glow centered as the bg of a <a> by just using a standard image. The downfall is that it does not change shape or size depending on how much text you have in the <a>.
     
    ninjamuk, Jun 20, 2007 IP
  3. veckd

    veckd Peon

    Messages:
    1,065
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #3
    veckd, Jun 20, 2007 IP
  4. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #4
    briansol, Jun 20, 2007 IP
  5. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    195
    #5
    Hmm... thanks for the suggestions. I have seen the hypergurl one...only ie is a problem. Needs to work across all of them. I will have to read the mezzoblue page more, but the eliptical bg image might work for me. I'll maybe give it a try first.

    If anyone else has any other ideas please post.

    Thanks.
     
    LGRComp, Jun 20, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Text shadow is a css3 draft property. To my knowledge, only Konqueror and perhaps Safari support it at this time. If you want fuzzy shadows, the previously suggest image is the way to go.

    cheers,

    gary
     
    kk5st, Jun 20, 2007 IP
  7. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #7
    briansol, Jun 20, 2007 IP
  8. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #8
    also to note, that that method fails miserably when the text is resized (ctrl +/-)
     
    briansol, Jun 20, 2007 IP
  9. CanaryWoolf

    CanaryWoolf Peon

    Messages:
    114
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hmm - more to the point maybe you should be advising your client that this is not a good idea? At best it will look tacky and dated at worst it will mean that the text amy be hard to read and may fail disabilities guidelines (or laws) that are relevant in your country.

    Cw
     
    CanaryWoolf, Jun 21, 2007 IP
  10. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    195
    #10
    CanaryWolf...That was the first thing I did....but sometimes you do what they ask and wait. I think I have come up with a solution that is not to bad and still gives them the look that they want. Not my favourite choice but oh well.
     
    LGRComp, Jun 21, 2007 IP
  11. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #11
    Hmm... one possible solution would be to create a cgi that generates a image of the text in realtime. The problem with images is they are static - you have to go in and make a new image every time you want to change the text - which is the only real reason for 'no images' to be their concern.

    Just make a php that generates a image based on the text... though I would probably use image replacement techniques as well so that when images are off, or in search engines there's actually something to 'look at'.
     
    deathshadow, Jun 23, 2007 IP