Welcome to WebmasterWorld Guest from 54.198.46.95

Forum Moderators: not2easy

Message Too Old, No Replies

CSS error using W3C

     
7:47 pm on Mar 4, 2010 (gmt 0)

5+ Year Member



I have this errors in CSS.I using Mozilla Forefox 3

scrollbar-face-color doesn't exist : #fffff6
Property zoom doesn't exist : 1
Property _height doesn't exist : 0
Property progid doesn't exist : DXImageTransform
Property -moz-opacity doesn't exist : 0.6
Property _margin doesn't exist : 0
Property align doesn't exist : center
Property _width doesn't exist : 49.8%
Property behavior doesn't exist : url(pngbehavior.htc)
Property _padding doesn't exist : 0

help me please.
3:56 am on Mar 5, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome aboard Stepas. I don't know what the ones with underscores are, perhaps someone will enlighten us. I do know the other ones are proprietary, meaning, they are only for specific browsers and not in the spec for the doctype you are using. It's not likely those will ever validate.
3:45 pm on Mar 5, 2010 (gmt 0)

5+ Year Member



I am assuming you are intentionally using underscore hacks to target IE6 and lower only, scrollbar-face-color is not a valid css reference, but an IE specific 'fix', the behaviour file is a fix for IE failing to understand png transparency, DXImageTransform is are also an IE specific 'fix', zoom is a IE specific fix to solve 'hasLayout' issues - you can safely ignore the error about -moz-opacity - that is a completely valid forward compatible extension to css
there is no align:center property.

If you want to hide these validation errors from the validator, put them (apart from the -moz-opacity) in an IE conditional comment
9:16 am on Mar 7, 2010 (gmt 0)

5+ Year Member




jennyj

Property -moz-opacity doesn't exist : 0.6

True or not? This existing only for Netscape and Mozilla Firefox browsers?

O maybe it is only for IE?
8:25 am on Mar 8, 2010 (gmt 0)

5+ Year Member



Hi there Stepas,
the validator does not recognise the completely valid -moz prefix.
This is a vendor specific prefix for specifications that are not yet standard.
In css3, the property is opacity, because it was not fully standardised, browser vendors are allowed to use vendor prefixes to provide additional functionality.
Thus, you can safely ignore this validation error.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month