SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Font Outline?

  1. #1
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Font Outline?

    Is there a way to outline a font? Want to make it more pronounced.

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi, this is really a css question.

    A text outline isn't supported but you can add a text-shadow which does a similar thing - and can be a solid color if you don't want it to be blurred.
    Code:
    text-shadow: -1px 0 2px rgba(0,0,0.2);
    IE doesn't support it so you will need to have a play with the following filters if you wanted to get it working there also.
    Code:
    filter: dropshadow(color=#dddddd, offx=0, offy=-1, positive=1);
    filter: glow(color=#dddddd,strength=3);
    Hope it helps


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
  •