[thelist] Javascript/HTML Validation

Kevin Switzer Kevin.Switzer at Stamats.com
Wed Mar 10 08:23:40 CST 2004

I'm getting this error when I validate my HTML.  

Line 9, column 146: end tag for element "STYLE" which is not open
  ...1px; margin: 0; padding: 0; } </style>';

The actual code...

<script type="text/javascript">
var H=self.screen.availHeight-248;
var str='<style type="text/css"> .spacer { display: block; height:'+H+';
float: left; width: 1px; font-size: 1px; margin: 0; padding: 0; }

I'm doing this so I can use javascript to find the height of the screen.
The style is open, obviously, but the validator doesn't think it is.

Any ideas?


More information about the thelist mailing list