Help - Search - Members - Calendar
Full Version: HTML refer different other files , how to refer these files
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Monal
Hi I am referring css files in my HTML page.
by using this way

<LINK REL=StyleSheet HREF='staticstyles.css' TYPE="text/css" >

Is there any other way to refer to a file than singlequotes(') before file name



I m facing this problem since my webpage can be HTML or MHT type

In MHT type I m referring like this

<LINK REL=StyleSheet HREF='file:///staticstyles.css' TYPE="text/css" >

I need a common file prefix where I can refer to a file both in MHT & HTML.

If there is plz let me know.

Thanks.
Peter Evans
QUOTE(Monal @ Aug 23 2007, 08:32 PM) *

Hi I am referring css files in my HTML page.
by using this way

<LINK REL=StyleSheet HREF='staticstyles.css' TYPE="text/css" >

Is there any other way to refer to a file than singlequotes(') before file name


I use double quotes.

QUOTE(Monal @ Aug 23 2007, 08:32 PM) *
I m facing this problem since my webpage can be HTML or MHT type

In MHT type I m referring like this

<LINK REL=StyleSheet HREF='file:///staticstyles.css' TYPE="text/css" >

I need a common file prefix where I can refer to a file both in MHT & HTML.


Instead of "file:///", how about plain "/"?
Frederiek
See http://htmlhelp.com/faq/html/basics.html#relative-url.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.