PhotoDune

question for css3 gurus

701 posts
  • Bought between 1000 and 4999 items
  • Canada
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
chrismccoy says

is it possible to achieve stroke and drop shadow on a font?

example.

118 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 50 and 99 users
  • Russian Federation
ZenThemes says

Stroke will be available only in webkit based browsers:

Reference : http://css-tricks.com/7405-adding-stroke-to-web-text/

Adding drop shadow to the text can be achieved using the text-shadow property.

// Paul

701 posts
  • Bought between 1000 and 4999 items
  • Canada
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
chrismccoy says
KiwiStudio said
Stroke will be available only in webkit based browsers:

Reference : http://css-tricks.com/7405-adding-stroke-to-web-text/

Adding drop shadow to the text can be achieved using the text-shadow property.

// Paul

thanks ;)

118 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 50 and 99 users
  • Russian Federation
ZenThemes says

You’re welcome, Sir!

2965 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says
Try using multiple text shadows
{
  text-shadow:
   -1px -1px 0 #FFF,
    1px -1px 0 #FFF,
    -1px 1px 0 #FFF,
     1px 1px 0 #FFF,
     0px 0px 4px #000;
}
First 4 are the stroke and the last is the shadow. ( did not test this out but it should work )
2381 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says

Problem is, you don’t have control over the text-shadow thickness (stroke). You only control the blur, so that leaves you with a lot of shadows…

2965 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says
digitalimpact said
Problem is, you don’t have control over the text-shadow thickness (stroke). You only control the blur, so that leaves you with a lot of shadows…

Blur 0 and move one pixel on both x and y axis results in one px stroke.
EDIT and if you need it to be more thick just move it more than one pixel. Move it n pixels on both axis and all 4 directional combinations.

701 posts
  • Bought between 1000 and 4999 items
  • Canada
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
chrismccoy says

will give it a try.

2529 posts
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Blog Editor
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Envato Staff
  • Exclusive Author
+8 more
JeffreyWay moderator says

Yeah, I’d either use webkit-stroke, or multiple text-shadows.

2965 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says
JeffreyWay said
Yeah, I’d either use webkit-stroke, or multiple text-shadows.
:) As i said, because webkit is not the engine for all browsers, go for text shadows.
by
by
by
by
by