↧
Answer by Orwellophile for Outline effect to text
I'm sorry, but if you've gotten this far, you'll realise that all the other answers are inadequate or require SVG.Note: This beautiful outlining will cost you the small price of maintaining a copy of...
View ArticleAnswer by AliNajafZadeh for Outline effect to text
Try Following:<!DOCTYPE html><html><head><style>h1 { text-shadow: 2px 2px;}h1.m1 { text-shadow: 2px 2px red;}h1.m2 { text-shadow: 2px 2px 5px red;}h1.m3 { color: white;...
View ArticleAnswer by S.M Naveen for Outline effect to text
We can use text-strokeHTML<h1>Sample Text</h1>CSS h1{ -webkit-text-stroke: 2px red; text-stroke: 2px red; }Just piece of cake. Try this instead of using text-shadow
View ArticleAnswer by RilDev for Outline effect to text
Simple outline behind the letters.Works with any font. With any outline width.<style> text { stroke-linejoin: round; text-anchor: middle; fill: black; stroke: white; stroke-width: 12px;...
View ArticleAnswer by b_laoshi for Outline effect to text
Text Shadow GeneratorThere are lots of great answers here. It would appear the text-shadow is probably the most reliable way to do this. I won't go into detail about how to do this with text-shadow...
View ArticleAnswer by gman for Outline effect to text
Just adding this answer. "Stroking" the text is not the same as "Outlining".Outlining looks great. Stroking looks horrid.The SVG solution listed elsewhere has the same issue. If you want an outline you...
View ArticleAnswer by Jared for Outline effect to text
I had this issue as well, and the text-shadow wasn't an option because the corners would look bad (unless I had many many shadows), and I didn't want any blur, therefore my only other option was to do...
View ArticleAnswer by Ryall for Outline effect to text
This mixin for SASS will give smooth results, using 8-axis:@mixin stroke($size: 1px, $color: #000) { text-shadow: -#{$size} -#{$size} 0 $color, 0 -#{$size} 0 $color, #{$size} -#{$size} 0 $color,...
View ArticleAnswer by Aashish Kumar for Outline effect to text
h1 { color: black; -webkit-text-fill-color: white; /* Will override color (regardless of order) */ -webkit-text-stroke-width: 1px; -webkit-text-stroke-color: black;}<h1>Properly stroked!</h1>
View ArticleAnswer by punosound for Outline effect to text
Multiple text-shadows..Something like this:var steps = 10, i, R = 0.6, x, y, theStyle = '1vw 1vw 3vw #005dab';for (i = -steps; i <= steps; i += 1) { x = (i / steps) / 2; y = Math.sqrt(Math.pow(R, 2)...
View ArticleAnswer by vsync for Outline effect to text
Easy! SVG to the rescue.This is a simplified method:svg{ font : bold 70px Century Gothic, Arial; width : 100%; height : 120px;}text{ fill : none; stroke : black; stroke-width : .5px; stroke-linejoin :...
View ArticleAnswer by ancestral for Outline effect to text
Edit:text-strokeis now fairly mature and implemented in most browsers. It is easier, sharper and more precise. If your browser audience can support it, you should now use text-stroke first, instead of...
View ArticleAnswer by evo_rob for Outline effect to text
Working with thicker strokes gets a bit messy, if you have the pleasure of sass try this mixin, not perfect and depending on stroke weight it generates a fair amount of css. @mixin stroke($width,...
View ArticleAnswer by surajck for Outline effect to text
I got better results with 6 different shadows:.strokeThis{ text-shadow: -1px -1px 0 #ff0, 0px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0, 0px 1px 0 #ff0, 1px 1px 0 #ff0;}
View ArticleAnswer by brohr for Outline effect to text
You could try stacking multiple blured shadows until the shadows look like a stroke, like so:.shadowOutline { text-shadow: 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0...
View ArticleAnswer by crdunst for Outline effect to text
I was looking for a cross-browser text-stroke solution that works when overlaid on background images. think I have a solution for this that doesn't involve extra mark-up, js and works in IE7-9 (I...
View ArticleAnswer by Kyle for Outline effect to text
There is an experimental webkit property called text-stroke in CSS3, I've been trying to get this to work for some time but have been unsuccessful so far.What I have done instead is used the already...
View ArticleOutline effect to text
Are there any ways in CSS to give outlines to text with different colors ? I want to highlight some parts of my text to make it more intuitive - like the names, links, etc. Changing the link colors...
View Article
More Pages to Explore .....