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?
Why color codes dont work in css ? [only words working]!
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Why color codes dont work in css ? [only words working]!
Is this related to a specific browser or in all the browsers you have tested the code in
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: Why color codes dont work in css ? [only words working]!
all browsers! :S
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Why color codes dont work in css ? [only words working]!
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
hth
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
-
annaharris
- Forum Commoner
- Posts: 30
- Joined: Mon Mar 25, 2013 6:52 am
Re: Why color codes dont work in css ? [only words working]!
I was trying with same code and it is working with my css.
-
priyankagound
- Forum Commoner
- Posts: 27
- Joined: Thu Sep 19, 2013 2:53 am
Re: Why color codes dont work in css ? [only words working]!
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.