Re: [css-d] CSS Not Validating

2010-06-22 Thread Duane Nelson
Wow...and I thought that this was a simple fix  ;-)

I'm of the validation persuasion, because I lack the theory behind CSS 
and HTML.  By validating my code, which I learned I need to do from this 
list, I have a foundation to fix the display behavior.  This PNG fix 
only affected IE browsers below version 6.  I tried a new fix for 
appwoodcraft.com because I thought it was better than my previous fix.  
So to fix the validation issue, I took the behavior code out of my CSS 
and went back to the JS fix from before.

Personally, I like:
- web standards
- one style sheet
- limited javascript
- and those neat looking W3C validation icons

When I stay with the above, it keeps a simple man on the straight and 
narrow (speaking from a web development perspective).

Again thank you for all the help.  I appreciate the wisdom even if it 
causes me more time in research.

Duane Nelson

On 6/21/2010 6:06 PM, Thierry Koblentz wrote:
 Duane Nelson wrote:
  
 I'm using the following to fix a PNG display bug inie6:

 /* PGN Fix forIE6 */
 img, div {
   behavior: url(../scripts/htc/iepngfix.htc)
 }

 But it causes the css to ot validate.  Is there a way I can do this

 to get my CSS to validate?
  
 Thanks,

 Duane Nelson


 try:

 * html img,
 * html div {
 behavior: url(../scripts/htc/iepngfix.htc)
 } /* targets IE/6.0 */
  

 Hi David,

 I'm afraid that won't hide the proprietary property from the parser.


 --
 Regards,
 Thierry
 www.tjkdesign.com | www.ez-css.org | @thierrykoblentz


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-22 Thread Philip Taylor (Webmaster, Ret'd)


Duane Nelson wrote:

 I'm of the validation persuasion, because I lack the theory behind CSS
 and HTML.  By validating my code, which I learned I need to do from this
 list, I have a foundation to fix the display behavior.  This PNG fix
 only affected IE browsers below version 6.  I tried a new fix for
 appwoodcraft.com because I thought it was better than my previous fix.
 So to fix the validation issue, I took the behavior code out of my CSS
 and went back to the JS fix from before.

All understood.  But I foresee one potential problem.  If your
static data (HTML, CSS) are valid, but you extend them using
JavaScript, then unless you can re-validate the extended
(static + dynamic) data, you are not really any better off
than before.  In fact, unless you be 100% certain that what
your JavaScript generates is (a) consistent with your static
data, (b) does exactly what you require (neither more not less),
and (c) yields extended (static + dynamic) data that are still
valid, then you may in fact be worse off.  My two penn'orth.

Philip Taylor
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] CSS Not Validating

2010-06-21 Thread Duane Nelson
I'm using the following to fix a PNG display bug in ie6:

/* PGN Fix forIE6 */
img, div {
 behavior: url(../scripts/htc/iepngfix.htc)
}

But it causes the css to ot validate.  Is there a way I can do this to get my 
CSS to validate?

Thanks,

Duane Nelson
Loss2gaiN Designs
http://myL2G.com

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread David Laakso
Duane Nelson wrote:
 I'm using the following to fix a PNG display bug in ie6:

 /* PGN Fix forIE6 */
 img, div {
  behavior: url(../scripts/htc/iepngfix.htc)
 }

 But it causes the css to ot validate.  Is there a way I can do this to get my 
 CSS to validate?

 Thanks,

 Duane Nelson
   






try:

* html img, 
* html div {
behavior: url(../scripts/htc/iepngfix.htc)
} /* targets IE/6.0 */


Best,
~d



-- 
desktop
http://chelseacreekstudio.com/

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread Thierry Koblentz
 Duane Nelson wrote:
  I'm using the following to fix a PNG display bug in ie6:
 
  /* PGN Fix forIE6 */
  img, div {
   behavior: url(../scripts/htc/iepngfix.htc)
  }
 
  But it causes the css to ot validate.  Is there a way I can do this
 to get my CSS to validate?
 
  Thanks,
 
  Duane Nelson
 
 
 try:
 
 * html img,
 * html div {
 behavior: url(../scripts/htc/iepngfix.htc)
 } /* targets IE/6.0 */


Hi David,

I'm afraid that won't hide the proprietary property from the parser.


--
Regards,
Thierry
www.tjkdesign.com | www.ez-css.org | @thierrykoblentz

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread David Laakso
Thierry Koblentz wrote:

 try:

 * html img,
 * html div {
 behavior: url(../scripts/htc/iepngfix.htc)
 } /* targets IE/6.0 */
 


 Hi David,

 I'm afraid that won't hide the proprietary property from the parser.


 --
 Regards,
 Thierry

   




Oh, my...

Perhaps you would be kind enough to point Duane to the appropriate 
Conditional Comment?

Best,
d


-- 
desktop
http://chelseacreekstudio.com/

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread Peter Bradley
Ar 21/06/10 22:13, ysgrifennodd Duane Nelson :
 I'm using the following to fix a PNG display bug inie6:

 /* PGN Fix forIE6 */
 img, div {
   behavior: url(../scripts/htc/iepngfix.htc)
 }

 But it causes the css to ot validate.  Is there a way I can do this to get my 
 CSS to validate?

 Thanks,

 Duane Nelson
 Loss2gaiN Designs
 http://myL2G.com



On the one occasion I needed it, I used this:

!--[if lt IE 7]
style type=text/css
 #banner img { behavior: url(styles/iepngfix.htc) }
/style
![endif]--

Obviously you'll want to substitute your own selector.

HTH


Peter

-- 
http://www.peredur.net

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread Tom Livingston
I use this and have had very good results. Add to your page with conditional 
comments. Works for bg images!


Sent from my iPod

On Jun 21, 2010, at 5:13 PM, Duane Nelson d...@myl2g.com wrote:

 I'm using the following to fix a PNG display bug in ie6:
 
 /* PGN Fix forIE6 */
 img, div {
 behavior: url(../scripts/htc/iepngfix.htc)
 }
 
 But it causes the css to ot validate.  Is there a way I can do this to get my 
 CSS to validate?
 
 Thanks,
 
 Duane Nelson
 Loss2gaiN Designs
 http://myL2G.com
 
 __
 css-discuss [cs...@lists.css-discuss.org]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread Thierry Koblentz
  * html img,
  * html div {
  behavior: url(../scripts/htc/iepngfix.htc)
  } /* targets IE/6.0 */
 
 
 
  Hi David,
 
  I'm afraid that won't hide the proprietary property from the parser.
 
 Oh, my...
 
 Perhaps you would be kind enough to point Duane to the appropriate
 Conditional Comment?

I sent an email to Duane off-list already, but saying it is no better to use
proprietary markup than proprietary CSS. That if it was me, I'd leave it
like that.


--
Regards,
Thierry
www.tjkdesign.com | www.ez-css.org | @thierrykoblentz




 

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Not Validating

2010-06-21 Thread David Laakso
Thierry Koblentz wrote:
 * html img,
 * html div {
 behavior: url(../scripts/htc/iepngfix.htc)
 } /* targets IE/6.0 */

 
 Hi David,

 I'm afraid that won't hide the proprietary property from the parser.
   
 Oh, my...

 Perhaps you would be kind enough to point Duane to the appropriate
 Conditional Comment?
 

 I sent an email to Duane off-list already, but saying it is no better to use
 proprietary markup than proprietary CSS. That if it was me, I'd leave it
 like that.


 --
 Regards,
 Thierry
   






I guess what you mean, is that either way, the construct is not valid.

Best,
~d
 




http://chelseacreekstudio.com/

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/