Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't <LINK> a CSS file 1

Status
Not open for further replies.

robulator

Programmer
Nov 17, 2000
33
US
I'm trying to use the LINK tag to link a CSS file to an HTML page, but it doesn't work. The tag, which is within the HEAD element, is:

<LINK REL=&quot;stylesheet&quot; TYPE=&quot;text/css&quot; HREF=&quot;Styles.css&quot;>

and Styles.css consists of:

<STYLE>
.Caption {color: White;
font-weight: Bold;
font-size: 36pt;
font-style: Italic
}
</STYLE>

The style sheet works fine when imbedded in the HTML page.
Does anyone have any suggestions?

Thanks,

Rob
 
take out the <style> and </style> from the css file.

===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top