Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > transparent GIF

Reply
Thread Tools

transparent GIF

 
 
Toby A Inkster
Guest
Posts: n/a
 
      02-14-2004
Mitja wrote:

> "Paul Furman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Toby A Inkster wrote:
>>>
>>> This should work:
>>>
>>> <img src="tree.gif" ...
>>> style="background:white;color:black;">

>>
>> Does that actually set the foreground & background of a b&w bitmap gif?

>
> I don't think color:black is really neccessary.


The "color:black" is for the alt text if the image fails to load for
whatever reason.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
 
 
 
Weyoun the Dancing Borg
Guest
Posts: n/a
 
      02-14-2004
Toby A Inkster wrote:

> Mitja wrote:
>
>
>>"Paul Furman" <(E-Mail Removed)> wrote in message
>>news:(E-Mail Removed)...
>>
>>>Toby A Inkster wrote:
>>>
>>>>This should work:
>>>>
>>>><img src="tree.gif" ...
>>>>style="background:white;color:black;">
>>>
>>>Does that actually set the foreground & background of a b&w bitmap gif?

>>
>>I don't think color:black is really neccessary.

>
>
> The "color:black" is for the alt text if the image fails to load for
> whatever reason.


shouldn't that be in Hex anyway? I thought "red" or "black" and whatnot
were phased out?
 
Reply With Quote
 
 
 
 
Toby A Inkster
Guest
Posts: n/a
 
      02-14-2004
Weyoun the Dancing Borg wrote:

> shouldn't that be in Hex anyway? I thought "red" or "black" and whatnot
> were phased out?


Certainly not. There are 16 colour keywords defined in HTML 4:

http://www.w3.org/TR/html401/types.html#h-6.5

and CSS 3 defines a whole bunch more, mainly inherited from X11 and
already supported in many browsers:

http://www.w3.org/TR/css3-color/

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      02-14-2004
Weyoun the Dancing Borg <(E-Mail Removed)> wrote:
>Toby A Inkster wrote:
>>
>> The "color:black" is for the alt text if the image fails to load for
>> whatever reason.

>
>shouldn't that be in Hex anyway? I thought "red" or "black" and whatnot
>were phased out?


Not at all. The 16 colours specified in HTMl 4 are referenced by CSS2,
(CSS2.1 adds a 17th - orange).

The use of any colour in HTML is, of course, deprecated - and absent
entirely from XHTML 1.1 - but they're still totally fine if used in
CSS.

http://www.w3.org/TR/html401/types.html#idx-color
http://www.w3.org/TR/CSS2/syndata.html#value-def-color

Any colour keywords other than those 16 (or 17) is problematic and
best avoided.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
Eric Bohlman
Guest
Posts: n/a
 
      02-14-2004
Steve Pugh <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> http://www.w3.org/TR/html401/types.html#idx-color
> http://www.w3.org/TR/CSS2/syndata.html#value-def-color
>
> Any colour keywords other than those 16 (or 17) is problematic and
> best avoided.


Problematic in that not only may a browser not recognize other color names,
different browsers that do recognize such names may not assign the same
color value to them.
 
Reply With Quote
 
Barry Pearson
Guest
Posts: n/a
 
      02-14-2004
Toby A Inkster wrote:
> Weyoun the Dancing Borg wrote:
>
>> shouldn't that be in Hex anyway? I thought "red" or "black" and
>> whatnot were phased out?

>
> Certainly not. There are 16 colour keywords defined in HTML 4:
> http://www.w3.org/TR/html401/types.html#h-6.5


Yes. And CSS2.1 (if it becomes a recommendation) will add number 17.
http://www.w3.org/TR/CSS21/syndata.html#color-units

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/


 
Reply With Quote
 
Alfred Lorona
Guest
Posts: n/a
 
      02-15-2004
Thanks, people. Will try your suggestions. AL


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize transparent gif images =?Utf-8?B?TWVrZW4=?= ASP .Net 0 07-20-2005 08:02 AM
Converting transparent GIF to JPEG via servlet john_pallozzi@itworld.com Java 0 04-29-2005 10:06 PM
Transparent Gif not working in IE tshad ASP .Net 4 01-26-2005 10:59 PM
Making Background of an image control transparent to view designed Gif =?Utf-8?B?Um9iZXJ0?= ASP .Net 0 04-06-2004 12:21 PM
How to draw a transparent gif in web Minhua Fu ASP .Net 1 12-30-2003 06:16 PM



Advertisments