- From: David Dorward <david@dorward.me.uk>
- Date: Thu, 21 Dec 2006 15:42:05 +0000
- To: Billy Jack Rogers <billyjackrogers@yahoo.com>
- Cc: www-validator-css@w3.org
On Thu, Dec 21, 2006 at 07:34:01AM -0800, Billy Jack Rogers wrote: > <style type="text/css"> > <!-- #navcontainer1, #navcontainer2 {height: 975px;} --> > </style> > Now all of my pages yield the following warning when validated: > {23 Do not put style rules inside HTML comments as they may > be removed by user agent} Looks like this is a new warning added in the release that came out a few days ago, its a very good one IMO. See: http://www.w3.org/TR/xhtml1/#h-4.8 , http://www.w3.org/TR/xhtml1/#C_4 and http://www.hixie.ch/advocacy/xhtml > If the comments are removed the column heights are not read That strikes me as unlikely. I wouldn't be surprising if /having/ the comments caused the style to be ignored, but removing them shouldn't have that effect. Unfortunately, I'm not in a position to test right now, but I'll see if I can this evening. Which browsers have you tested this in? And which of them show that effect? > Any suggestions? Avoid XHTML and avoid inline style. -- David Dorward http://dorward.me.uk
Received on Thursday, 21 December 2006 15:42:10 UTC