HighDots Forums  

CSS validation problem

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS validation problem in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default CSS validation problem - 02-19-2009 , 12:48 PM






Hello,

I have the following CSS on my styles files:

table.Engine tbody tr.Alternate td {
Background: inherit url('../../Contents/Project/Image/
Cell_Background.gif') no-repeat;
}

When I try to validate it I get the following:
table.Engine tbody tr.Alternate td
Too many values or values are not recognized :
inherit url('../../Contents/Project/Image/Cell_Background.gif') no-
repeat

What am I doing wrong?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: CSS validation problem - 02-19-2009 , 01:26 PM






shapper wrote:

Quote:
I have the following CSS on my styles files:

table.Engine tbody tr.Alternate td {
Background: inherit url('../../Contents/Project/Image/
Cell_Background.gif') no-repeat;
}

When I try to validate it I get the following:
table.Engine tbody tr.Alternate td
Too many values or values are not recognized :
inherit url('../../Contents/Project/Image/Cell_Background.gif') no-
repeat
Well, it's pretty self-explanatory. You can set background to inherit, but
that's all - you can't add anything to that.

If you wish to set properties for the background image and set background
color to inherit (which means you accept anything that the Cascade might
throw at you), use

table.Engine tbody tr.Alternate td {
Background: url('../../Contents/Project/Image/
Cell_Background.gif') no-repeat;
background-color: inherit;
}

--
Yucca, http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #3  
Old   
Jim Moe
 
Posts: n/a

Default Re: CSS validation problem - 02-19-2009 , 01:27 PM



On 02/19/09 10:48 am, shapper wrote:
Quote:
I have the following CSS on my styles files:

table.Engine tbody tr.Alternate td {
Background: inherit url('../../Contents/Project/Image/
Cell_Background.gif') no-repeat;
}
It is either "inherit" or all the other stuff, not both.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #4  
Old   
shapper
 
Posts: n/a

Default Re: CSS validation problem - 02-20-2009 , 10:05 AM



On Feb 19, 6:27*pm, Jim Moe <jmm-list.AXSPA... (AT) sohnen-moe (DOT) com> wrote:
Quote:
On 02/19/09 10:48 am, shapper wrote:

I have the following CSS on my styles files:

* * table.Engine tbody tr.Alternate td {
* * * *Background: inherit url('../../Contents/Project/Image/
Cell_Background.gif') no-repeat;
* * }

* It is either "inherit" or all the other stuff, not both.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Thank You


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.