HTML colour (not php i know but you guys help me alot)

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
synical21
Forum Contributor
Posts: 150
Joined: Tue Jul 28, 2009 8:44 am
Location: London UK

HTML colour (not php i know but you guys help me alot)

Post by synical21 »

I know this isnt php code but its pretty basic html which im sure you can correct my little problem.

In my script i have

Code: Select all

<font color="#090">Jobs Failed:</font>
Which in this case is the colour green, in Firefox and Dreamweaver its green, but in IE it decides to be black. Why wouldnt IE understand that basic html :crazy:
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: HTML colour (not php i know but you guys help me alot)

Post by papa »

Try using 6 char hex code:

09000
synical21
Forum Contributor
Posts: 150
Joined: Tue Jul 28, 2009 8:44 am
Location: London UK

Re: HTML colour (not php i know but you guys help me alot)

Post by synical21 »

Thanks for fast reply trying now

EDIT: I tried it with 6 but no luck, but when i did change to 6 dreamweaver didnt pick it up as green either maybe the code was wrong ill check
synical21
Forum Contributor
Posts: 150
Joined: Tue Jul 28, 2009 8:44 am
Location: London UK

Re: HTML colour (not php i know but you guys help me alot)

Post by synical21 »

Fixed thank you, i googled 6 hex colour table and got this green "#008000" works like a charm.

:drunk:
Last edited by synical21 on Fri Aug 28, 2009 8:52 am, edited 1 time in total.
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: HTML colour (not php i know but you guys help me alot)

Post by papa »

A green webcolor från PS:
009900


Edit: Nice :)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: HTML colour (not php i know but you guys help me alot)

Post by pickle »

Moved to HTML forum.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: HTML colour (not php i know but you guys help me alot)

Post by Darhazer »

Yeah, 090 is 009900
In HTML/CSS, when you are dropping values, the values are populated from corresponding elements
Padding: 0 means 0,0,0,0
Padding: 0,1 means 0,1,0,1
Padding 0,1,2 means 0,1,2,1 // not 100% sure about this, but I think left padding is populated from the right's padding value

By the way, #asdf is green (you can check at asdf.com)
It's actually translated to #a0df
Post Reply