Beware of bugs in the above code; I have only proved it correct, not tried it.
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
If u are still unable to get this work please do check carefully that css path is correct and your code can access it try testing the class via defining it in the same page's head element as
<style type="text/css">
.grad{
background-color:#cfcfcf;
}
</style>
Beware of bugs in the above code; I have only proved it correct, not tried it.
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
anuj_koundal: Thanks so much! I had not heard of this useful tool. Problem solved. Apparently, background-color attribute overriding the gradient attribute.
achalk
Member
68 Points
105 Posts
Background color ignored
Jan 17, 2013 03:37 AM|LINK
If I use:
I get a table with a grey background (correct).
If I use
where grad is in my .CSS file and defined thus:
.grad
{
background-color: #cfcfcf;
}
I get a white background (wrong). I.e. the gray background specification is ignored when it is in a class but not when it is in a style.
Can anyone tell me why the class is ignored and how to make it not be ignored?
Thanks.
anuj_koundal
Contributor
2088 Points
496 Posts
Re: Background color ignored
Jan 17, 2013 03:45 AM|LINK
You can check using Firefox's Firebug extension wethere there is any confliction of bacground colors in CSS.
You can post link of the website here.
Regards
Anuj Koundal
Jugg3rNaut
Member
474 Points
109 Posts
Re: Background color ignored
Jan 17, 2013 03:56 AM|LINK
try this
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
achalk
Member
68 Points
105 Posts
Re: Background color ignored
Jan 17, 2013 04:04 AM|LINK
Jugg3rNaut: Same result
Jugg3rNaut
Member
474 Points
109 Posts
Re: Background color ignored
Jan 17, 2013 04:11 AM|LINK
If u are still unable to get this work please do check carefully that css path is correct and your code can access it try testing the class via defining it in the same page's head element as
<style type="text/css">
.grad{
background-color:#cfcfcf;
}
</style>
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
achalk
Member
68 Points
105 Posts
Re: Background color ignored
Jan 19, 2013 01:15 AM|LINK
anuj_koundal: Thanks so much! I had not heard of this useful tool. Problem solved. Apparently, background-color attribute overriding the gradient attribute.