[thelist] validate this
travis forden
travis at treevis.com
Fri Sep 7 18:23:45 CDT 2001
At 06:44 pm 9/7/01, you wrote:
>the one thing preventing my page from validating is
>this line of javascript:
>
>document.write ("<style type='text/css'
>media='all'>@import 'fancy.css';</style>")
>
>how do i change that to validate?
try this:
document.write ("<style type='text/css'>@import url("fancy.css");</style>")
or
document.write ('<style type="text/css">@import url("fancy.css");</style>')
[ switched double and single quotes around ]
also if you could post an URL, it might be writing the HTML in an odd way that would invalidate it.
HTH,
travis
More information about the thelist
mailing list