problem adding css to my page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
When I add the foll to my page

<LINK href="border.css" type="text/css" rel="stylesheet">

I get the message "The active schema does not support the element 'LINK' "

Any ideas? I am using flowlayout.

Thanks
 
is the link in within the <HEAD> section?

<HEAD>
<title>My spiffy title</title>
<META http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<LINK href="border.css" type="text/css" rel="stylesheet">
</HEAD>
 
Yes it is.

Chris Leuty said:
is the link in within the <HEAD> section?

<HEAD>
<title>My spiffy title</title>
<META http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<LINK href="border.css" type="text/css" rel="stylesheet">
</HEAD>
 
..Net will give you errors about your CSS / .ASPX sometimes. It will work
100%, but it still lists them as errors / warnings.

/RT
 
Hi,

Try adding:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

(or some other appropriate doctype) before your html, which should tell
vs.net exactly what elements are allowed where. Not sure why vs objects to
the link tag, but this has worked for me before.

cheers,
Michael
 
It appears that these massive "The active schema doesn't support..."
messages are being caused by the code editor, not the code itself.
Try this: When you reopen a project and a page starts generating a
ton of these error messages, highlight one or more of the first lines,
copy them to the clipboard (Ctrl-C), delete them (Ctrl-X), then paste
them back in (Ctrl-V). Works every time for me!
 
Back
Top