CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 24th, 2004, 01:16 PM
alexmasters alexmasters is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 304 alexmasters User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Link to .CSS via full url path???

I am building a template page, this has the header only stored in the page, then a php page is loaded from a different file as the body of the page,

how do i set a full path to my css style sheet via the template page:

i.e. http://mysite.com/styles/mycss.css

for some reason this doesn't work! I can't set the path using '../../styles/mycss.css' because the template file will be stored in many different depths of my site,

SO: How can i set some sort of path to the css file?

any help will be appreciated!

Cheers, Alex.

Reply With Quote
  #2  
Old March 24th, 2004, 01:37 PM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 19 h 32 m 47 sec
Reputation Power: 9
How about:
Code:
<link rel="stylesheet" type="text/css" href="http://mysite.com/styles/mycss.css" />
 

Reply With Quote
  #3  
Old March 24th, 2004, 01:45 PM
alexmasters alexmasters is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 304 alexmasters User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
cheers! thats really wierd I tried to swap http full url for the ../ stuff before and it just messed up and other people have said they couldn't link to css by the full http link but it works now?

why is that, do you know?

cheers again, Alex.

Reply With Quote
  #4  
Old March 24th, 2004, 05:10 PM
ajax's Avatar
ajax ajax is offline
Resident DJ
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 282 ajax User rank is Lance Corporal (50 - 100 Reputation Level)ajax User rank is Lance Corporal (50 - 100 Reputation Level)ajax User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 1 h 4 m 18 sec
Reputation Power: 8
you can also do a root link:

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

Reply With Quote
  #5  
Old March 25th, 2004, 06:40 AM
alexmasters alexmasters is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 304 alexmasters User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Ok Mate Cheers For That!

Respect!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Link to .CSS via full url path???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT