Page 1 of 1
Why color codes dont work in css ? [only words working]!
Posted: Sun Sep 09, 2012 3:50 am
by mekha
hi guys,
Why color codes dont work in css ? [only words working]!?
.. i mean
if i put:
.xxx a{
color:red;
}
no problems!..
but if
.xxx a{
color:#ff0000;
}
the color doesnt work!
any help please?
Re: Why color codes dont work in css ? [only words working]!
Posted: Sun Sep 09, 2012 3:52 am
by social_experiment
Is this related to a specific browser or in all the browsers you have tested the code in
Re: Why color codes dont work in css ? [only words working]!
Posted: Sun Sep 09, 2012 3:56 am
by mekha
all browsers! :S
Re: Why color codes dont work in css ? [only words working]!
Posted: Sun Sep 09, 2012 4:21 am
by social_experiment
curious indeed; validate the css file via w3c.org's css validator. i've encountered situations where a missing { or an incorrect declaration causes the browser to react differently than expected
hth

Re: Why color codes dont work in css ? [only words working]!
Posted: Tue Apr 23, 2013 7:07 am
by annaharris
I was trying with same code and it is working with my css.
Re: Why color codes dont work in css ? [only words working]!
Posted: Fri Sep 20, 2013 5:47 am
by priyankagound
I'll prefer the hex value since it is supported by all browsers and I can specify wide range of colors than the named colors.