King of Red Lions wrote:
> Is there any way, maybe using CSS, to create an outline on text?
> Thanks in advance.
Sort of. I've done it before, as an exercise to see if I could do it, and
came up with this:
http://homepages.ihug.co.nz/~nrkn/outline.html
I don't think it's practical though, for two reasons:
1. I relied on absolute positioning to offset the outline. Don't know how
you would do this with text when you don't know exactly where it's going to
start. Maybe something to do with relative positioning would help, don't
really know enough about it -- sorry.
2. When you resize the browser it sometimes wraps the outline text
differently to the foreground text, which looks terrible. You could advoid
this by not having an outline on the right hand side, but this wouldn't look
too good either, IMO.
It's fine for things like overlaying captions on photos though, which is why
I originally wanted to do it -- given a random photo, you never know what
color the text is overlaying, possibly the text and background are the same
color and you can't read the text. Outlined text is one way of getting
around this.