3 replies [Last post]
Deuce
Deuce's picture
Offline
Guru
Las Vegas, NV
Last seen: 1 year 34 weeks ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

I ran across a site at work the other day that one of the designers used a .TXT file as the background image and it actually rendered out. If I tried to view the background it told me to download it, so I did and it's all in gibberish.

how does this work?
why does this work?
is this a horrible thing to do?
is there a reason to ever do it?

All the main questions that come along with it.

I tried to Google it but I keep coming up with converting Text to PNG, PDF, etc spam crap-ware.

Any help or information would be appreciate.

Thanks!!

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Triumph (not verified)
Anonymous's picture
Guru

Did it have a mime-type

Did it have a mime-type attributed to it? image/png?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 13 hours 50 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9276
Points: 3282

Was this viewable in IE? IE

Was this viewable in IE? IE will sniff the file's apparent type and ignore the mime-type. I've not seen it with images, but you just flat cannot view a text file version of an html page.

cheers,

gary

UI design should be egoless; if you succumb to the temptation to show off, you’re probably doing it wrong. (from ESR)

There are enough html & css demos and tutorials to be interesting. Please visit.

Tom L
Tom L's picture
Offline
Enthusiast
Liverpool
Last seen: 3 years 35 weeks ago
Liverpool
Timezone: GMT+1
Joined: 2005-09-23
Posts: 91
Points: 2

Got a link Deuce?

Got a link Deuce?