problem adding css to my page

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
 
C

Chris Leuty

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>
 
G

Guest

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>
 
R

Ryan Ternier

..Net will give you errors about your CSS / .ASPX sometimes. It will work
100%, but it still lists them as errors / warnings.

/RT
 
M

Michael O'Brien

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
 
J

Jeff Carver

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top