Firefox: CSS text outline or shadow?
Linc
OwnerDetroit Icrontian
Anyone know how to apply ANY type of outline or shadow to text using CSS that will show up in Firefox? And, I need it in 5 lines of code or less - I've found 20+ line hacks that are ridiculous to try and implement for what I'm doing. Space is at a premium, and it has to be straight CSS - Javascript hacks don't help either.
For once, I'm wishing it handled this ability like IE does.
For once, I'm wishing it handled this ability like IE does.
0
Comments
I'm finishing up my own site atm
I've found the "filter" abilities in IE can duplicate it. I used an example from lsevald to come up with "filter: glow(Color=#000000,Strength=2);" which works for adding shadow effects in IE only - Firefox won't recognize filter attributes. It looks so cool, but I can't get a duplicate or near-duplicate effect of any kind in Firefox no matter what I try.
Examples of filters: http://www.fred.net/dhark/demos/css/css_filter_examples.html
Glow is sixth on that page. Note that they won't work unless you view the page with IE.
Thanks for taking a look
Try making the same text in a bigger font lower in the z-order...
Firefox is on the left and IE on the right
Notice, it isn't like IE does this via CSS, it does it via a hack: filter. This hack won't work on all images, from my experience; only on images included via the < img > tag. Have an image as a background and this hack doesn't work.
Solution:
1) Make both browsers support CSS1 & CSS2 completely.
2) Make IE properly support the alpha channel in PNG images.