Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-17-2006, 11:40 AM   #1
Member (6 bit)
 
Join Date: Feb 2006
Location: MA
Posts: 43
Angry CSS Stylesheet Linking Problem

Hi,
I ran into a CSS Stylesheet linking problem. On my Dreamweaver, I use the link of (LINK href="/www/include/style.css" REL=StyleSheet title="TxtLink" TYPE="text/css") and the change work fine. But, when update onto live production (online web) there wasn’t any change made on it. It just shows the default setting (black text, middle of the page alignment text, default font etc…). I then try another link (LINK rel="stylesheet" href="http://www.nameofwebsite.com/include/style.css" title="TxtLink" TYPE="text/css"), on my Dreamweaver the change doesn’t show but on the website some changes were made but not all.

My concern is that… I don’t want to keep uploading the change every time to the web for me to be able to see the change. There has to be a way to resolve this issue, so that I can link my CSS style to the editing page and able to see the change on Dreamweaver and have the same result on the web. For me, it is really difficult to work on the page and I can’t see the change until I upload on the web for the CSS style to kick in and change. Anyone has any idea what I did wrong on my linking or a solution to a better way of fixing this?

Note: I have to use the () because the forum does not support the <>.

Nav_Functions
Nav_functions is offline   Reply With Quote
Old 02-17-2006, 12:13 PM   #2
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Can you access your CSS file (style.css) from your browser? In other words, I'm asking whether it has been FTPed succesfully. In any case, try this: it could be a simple mis-linking problem
PHP Code:
<link href="/include/style.css" rel=stylesheet type="text/css"
kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Old 02-17-2006, 12:35 PM   #3
Member (6 bit)
 
Join Date: Feb 2006
Location: MA
Posts: 43
Thank for replying.

Quote:
Originally Posted by kram 2.0
Can you access your CSS file (style.css) from your browser? In other words, I'm asking whether it has been FTPed succesfully. In any case, try this: it could be a simple mis-linking problem
PHP Code:
<link href="/include/style.css" rel=stylesheet type="text/css"
kram
Yes, I can gain access to the css file via browser.
PHP Code:
<LINK href="/www/include/style.css" REL=StyleSheet TYPE="text/css"
This link work for my Dreamweaver, but when uploaded the web doesn't connect it somehow and nothing get change at all.

If I use this link:
PHP Code:
<LINK rel="stylesheet" href="http://www."nameofwebsite".com/include/style.css" TYPE="text/css"
The web recognize some of the css change but not all. The problem with this link is that I can not see the change in my DW and it's hard to design/codes if you can't see the changes.

Nav_
Nav_functions is offline   Reply With Quote
Old 02-17-2006, 12:40 PM   #4
Member (6 bit)
 
Join Date: Feb 2006
Location: MA
Posts: 43
On the side note of that, I am trying to link the css from an external page because I want to use this .css file to hook it up to the rest of my website. I don't want to copy&paste the css style into every pages internally.
Nav_functions is offline   Reply With Quote
Old 02-17-2006, 04:25 PM   #5
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Is your external CSS file located in this URL:

http://www.nameofwebsite.com/include/style.css
In the directory "Include" as a file name "style.css"?

kram
kram 2.0 is offline   Reply With Quote
Old 02-17-2006, 08:26 PM   #6
Member (6 bit)
 
Join Date: Feb 2006
Location: MA
Posts: 43
Yes, but that's not my 'true' link, just an example.
I can give you the right link, I can change the file name later for privacy control.
http://www.nam-king.com/include/style.css
Nav_functions is offline   Reply With Quote
Old 02-17-2006, 09:17 PM   #7
Member (6 bit)
 
Join Date: Feb 2006
Location: MA
Posts: 43
I found the reason now. My Dreamweaver didn't load the linking properly to my server so the css didn't get to load up. I had to copy&paste the code manually to correct the mistake.
Nav_functions is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2