how to make my HTML ‘font’ edge match with background on css ?
i meant to make the color of a ‘fat font'(font size) change pixel by pixel to match the background.
such as white font n black background. how to make the font edge color smoothly / gradually change match to background?
e.g.
<div style="font-size: 24px; weight: 600; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;">
MY TITLE n LOGO
</div>
obviously this can do in photoshop as image, but that would break-my-rule-of-bandwidth. i want it to be HTML n CSS purely. IT IS POSSIBLE? is there any relationship to ‘anti-aliasing’ thing ? what is anti-alias actually? lazy mode
What you probably want to do (a bit unclear question) is to cast a blurring shadow to the text that has no offset. You can do that by applying a CSS style to your text using
text-shadowproperty like so:or in your case:
> Here’s a Fiddle for it.
You can find a reference for this
Text-ShadowCSS property at w3schools.com. It takes four parameters:h-shadow: Required. The position of the horizontal shadow. Negative values are allowedv-shadow: Required. The position of the vertical shadow. Negative values are allowedblur: Optional. The blur distancecolor: Optional. The color of the shadow.Note that this property isn’t supported in Internet Explorer browsers lower than IE10.
What you could do though for IE browsers is apply a blurring filter to the text:
or a glowing filter:
or both:
IE static filters reference can be found at http://msdn.microsoft.com.