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.

Text-shadow CSS command - How to use?

Discussion in 'CSS' started by misohoni, Oct 4, 2010.

  1. #1
    I want to use the this snippet of code to provide a shadow on my text (see graphic), don't suppose anyone could guide me how to use it and where?

    Code:
    text-shadow: #4fb2e4 0px -1px 0px;

    For the site:
    http://www.uncoverengland.com

    Cheers
     

    Attached Files:

    misohoni, Oct 4, 2010 IP
  2. clockedout7

    clockedout7 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can just put this to the end of the site's CSS style sheet:

    #tab_text_div {
    text-shadow: #4fb2e4 0px -1px 0px;
    }
     
    clockedout7, Oct 4, 2010 IP
  3. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #3
    Tried it, doesn't work for me...thanks anyway!
     
    misohoni, Oct 4, 2010 IP
  4. clockedout7

    clockedout7 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's strange. I saw the site when you tried it, and it seemed to work just fine.
     
    clockedout7, Oct 4, 2010 IP
  5. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #5
    Is it because I was using IE8...didnt see it in FF yet...but I guess if I can only see it in one browser then it's so great...
     
    misohoni, Oct 4, 2010 IP
  6. clockedout7

    clockedout7 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah, I'm using Firefox (3.6.10); text-shadow doesn't work in IE browsers.
     
    clockedout7, Oct 4, 2010 IP
  7. encryta

    encryta Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    text-shadow property should be text-shadow: <offset-x> | <offset-y> | <blur-radius> | <color>;

    Try:

    .shadow {
      text-shadow: 2px 2px 5px #000;
    }
    Code (markup):
    If you want to give the text-shadow some opacity use RGBA

    .shadow {
      text-shadow: 2px 2px 5px rgba(0, 0, 0, .6);
    }
    Code (markup):
    The .6 sets the transparency of the shadow.
     
    encryta, Oct 5, 2010 IP
  8. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #8
    As stated, text-shadow only works in modern browsers and not IE.
     
    drhowarddrfine, Oct 6, 2010 IP
  9. Deu

    Deu Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #9
    better to use javascript to do this functionality not css , because it's not a standard in all browsers
     
    Deu, Oct 6, 2010 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    To the contrary, all modern browsers do text-shadow just fine. Only IE does not.
     
    drhowarddrfine, Oct 6, 2010 IP
  11. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #11
    Haha, good point. I find IE is very uncooperative, especially if you try and get things working in anything less then IE7, but even the newer versions are a pain... I guess they are beyond standards...
     
    camjohnson95, Oct 6, 2010 IP
  12. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #12
    All versions, including IE9, are the worst on the planet. Inept at best. An embarrassment to Microsoft.
     
    drhowarddrfine, Oct 6, 2010 IP
  13. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
  14. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #14
    I guess the conclusion is not to use text-shadow because IE can't handle it well...don't want the site to look too different on other browsers.

    I've done away with the white text and now back to boring blue on a white background...
     
    misohoni, Oct 8, 2010 IP
  15. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #15
    Yeah. Let's all dumb down our web sites for IE's sake.

    That's the problem we've had with the web for 10 years. Catering to IE has held back the web for that long. Now that people are getting smarter, they realize they don't need IE and there are far better alternatives.

    Besides, text-shadow not working in IE does not hinder the looks of the site. If it can't be done in IE, why remove it from modern browsers? Just leave it in and let the modern world enjoy the view! Besides, IE users are used to not having the best. They don't know the difference anyway.
     
    drhowarddrfine, Oct 8, 2010 IP
  16. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #16
    Okay, a bit off-topic, Have anyone tried IE9 Beta yet? I dont want to install (the unstable IE9 beta) as it will replace IE 8. Please share your expereince. MS claims to be it as a mod browser.

    I guess the major issue dropping IE, it is still used by alot of PC users. Though IE seems to be bit dumb and yet to grow up; a nightmare.

    Thanks
     
    radiant_luv, Oct 8, 2010 IP
  17. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #17
    No, the conclusion is that you shouldn't compromise your design because of 1 browser. If you truly want that effect in there, then you should find a way to get it to work. You can always find a way around any problem if you just search for it. Scroll up and look at my reply above, I pasted a link with a very simple solution to this problem.
     
    GWiz, Oct 8, 2010 IP
  18. Qurink

    Qurink Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Qurink, Oct 8, 2010 IP
  19. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #19
    It won't be released till mid-next year. Incomplete support for SVG, no CSS transitions, transforms or flex box. Incomplete DOM support and more. As usual, it will be about three years behind where all other browsers are TODAY.

    Inept and incompetent, No one should use IE.
     
    drhowarddrfine, Oct 8, 2010 IP
  20. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #20
    I have it installed, but I never use it. Only for testing :D
    Crap IE should be rm -Rf
     
    CSM, Oct 8, 2010 IP