CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 July 22nd, 2003, 10:04 AM
spank's Avatar
spank spank is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 152 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 4 sec
Reputation Power: 10
CSS file not being recognized by all pages

Im trying to figure out why some of my pages utilize my CSS file and others don't when I have the same path to the file in both pages. The CSS works fine on my index page, but when I try to open another page on the site, everything in my CSS is ignored. This only happens on one or two pages. Can someone give me an idea where to look please? Thanks in advance for you help.

Reply With Quote
  #2  
Old July 22nd, 2003, 10:21 AM
meddle's Avatar
meddle meddle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Barcelona
Posts: 133 meddle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
can u post some code or a link? there are too many instances why your code wouldnt work.

Reply With Quote
  #3  
Old July 22nd, 2003, 10:26 AM
spank's Avatar
spank spank is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 152 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 4 sec
Reputation Power: 10
Sorry, this is my header.inc file

<html>
<head>
<title></title>


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




</head>


<body bgcolor="efefef">
<h3><center>BCE Service Tech Resource Site</center></h3>
<table width=700 align="center" background="./images/cellpic1.gif">



<tr>
<td><a href="../index2.php">Home</a> |</td>
<td><a href="../manuals.php">Service Manuals</a> |</td>
<td><a href="../firmware.php">Firmware</a> |</td>
<td><a href="../parts.php">Parts Price List</a> |</td>
<td><a href="../forms.php">BCE Forms</a> |</td>
<td><a href="../expenses/expenses.php">Expenses</a> |</td>
<td><a href="../forum/index.php" target="new">Tech Forums</a> |</td>
<td><a href="../fss/fss.php">FSS</a> |</td>
<td><a href="../links.php">Links</a></td>
</tr>
</table>
<hr>

Thanks for your help./

Reply With Quote
  #4  
Old July 22nd, 2003, 11:19 AM
meddle's Avatar
meddle meddle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Barcelona
Posts: 133 meddle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
is that other page (not index) in a different folder? I'd recommend using absolute paths, like:

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

first / in href tells browser to look from the root of your html pages.

Reply With Quote
  #5  
Old July 22nd, 2003, 11:31 AM
spank's Avatar
spank spank is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 152 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 4 sec
Reputation Power: 10
yes, my css is in another folder. what if I want to keep my include file outside my html root folder?

Last edited by spank : July 22nd, 2003 at 11:37 AM.

Reply With Quote
  #6  
Old July 22nd, 2003, 11:56 AM
meddle's Avatar
meddle meddle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Barcelona
Posts: 133 meddle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
if you follow my example above, if you place all your css files in, for instance, css folder, you would call it like:
<link rel="stylesheet" href="/css/includes/style.css" type="text/css">
from all your pages, and it'd work always, as it's absolute path. It's the same as calling
<link rel="stylesheet" href="http://www.yourdomain.com/css/includes/style.css" type="text/css">

Reply With Quote
  #7  
Old July 22nd, 2003, 12:04 PM
spank's Avatar
spank spank is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 152 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 4 sec
Reputation Power: 10
OK, Thanks for your help. I appreciate your time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS file not being recognized by all pages

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap