473,395 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

StyleSheets

The following link works correctly in the top level directory however pages
in any subdirectories are not linked to the styles, is there a way to
specify the path of the MyStyles as being at the top level as opposed to
duplicating MyStyles.css in every sub directory ?

<link href="MyStyles.css" type="text/css" rel="stylesheet" />
Thanks

Murphy
Nov 22 '05 #1
2 1471
Hi Murphy,

You can give like this

<link href="../MyStyles.css" type="text/css" rel="stylesheet" />

OR

<link href="http://www.yoursite.com/MyStyles.css" type="text/css"
rel="stylesheet" />

I hope this helps

--
Regards,
Anand N
Microsoft MVP
NetAns Technologies
www.netans.com
Web hosting Redefined
---------------------------------
www.learnXpress.com
www.learnXpress.com/forums
"Murphy" <mu****@murphy.com> wrote in message
news:#L**************@TK2MSFTNGP12.phx.gbl...
The following link works correctly in the top level directory however pages in any subdirectories are not linked to the styles, is there a way to
specify the path of the MyStyles as being at the top level as opposed to
duplicating MyStyles.css in every sub directory ?

<link href="MyStyles.css" type="text/css" rel="stylesheet" />
Thanks

Murphy

Nov 22 '05 #2
Hi Murphy,

You can give like this

<link href="../MyStyles.css" type="text/css" rel="stylesheet" />

OR

<link href="http://www.yoursite.com/MyStyles.css" type="text/css"
rel="stylesheet" />

I hope this helps

--
Regards,
Anand N
Microsoft MVP
NetAns Technologies
www.netans.com
Web hosting Redefined
---------------------------------
www.learnXpress.com
www.learnXpress.com/forums
"Murphy" <mu****@murphy.com> wrote in message
news:#L**************@TK2MSFTNGP12.phx.gbl...
The following link works correctly in the top level directory however pages in any subdirectories are not linked to the styles, is there a way to
specify the path of the MyStyles as being at the top level as opposed to
duplicating MyStyles.css in every sub directory ?

<link href="MyStyles.css" type="text/css" rel="stylesheet" />
Thanks

Murphy

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jason baumunk | last post by:
I author applications in php which use external stylesheets. When viewed through ie 6, netscape 6, et al. occassionally the stylesheets will not load or be applied. Has anybody encountered this...
13
by: Toby A Inkster | last post by:
www.authoring.stylesheets] For ages I have provided links to alternate stylesheets from my pages as per W3C recommendations: <link rel="stylesheet" href="baz" type="text/css" title="Baz"...
6
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: twice a week (mondays and thursdays) Last-modified: March 10, 2001 Version: 1.95 URL: http://css.nu/faq/ciwas-mFAQ.html Maintainer:...
2
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
0
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
0
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
2
by: Anna | last post by:
Hi all. I want to create a noframes version of a certain page (not written by me), that has three frames, each loading a page with few external stylesheets. If I copy the content of each...
2
by: Mr X | last post by:
I'm a few weeks new to JS, and am having a problem. I have a simple INTERNAL style in a web page and I know that style is working. The problem arises when I try to run a script that changes one of...
5
by: Richard L Rosenheim | last post by:
I need to create some XML stylesheets to transform some XML data into HTML pages. So, I'm looking to improve my understanding of XML stylesheets. I do have a book, "Professional Visual Basic 6...
5
by: Gardar | last post by:
I have a .net webservice, developed with c++ managed extensions. The websrvice returns an xml-document with a reference to a server side xml-stylesheet in the format <?xml-stylesheet href =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.