Click to See Complete Forum and Search --> : <link> Tag ?? NO GOOD!


• MaNiC MoE •
08-06-2007, 06:00 AM
1. I made a folder and named it "Night Sky"
2. I made in it another folder and called it "Images"

3. I then made my style sheet "Night_Sky.css"
4. I made the page "Index.html"

6. I linked it using the the link tag :
<link rel="stylesheet" href="Night_Sky.css" type="text/css" />

7. I viewed it on
Dreamweaver : Perfect! :) :D :cool: :p ;) :o :rolleyes:
FirstPage : hmm... Some floating errors :(

Internet Expolorer - No Style Sheet at All! :eek:
Mozilla FireFox - No Style Sheet as All :confused:



Why is this? Is it cuz I used relative links? What can I do?

NogDog
08-06-2007, 06:42 AM
Is the "Night_Sky.css" file in the same directory as the index.html file? Is it spelled correctly? (Remember, in UNIX/Linux systems, "Night_Sky.css" is not the same as "night_sky.css".)

• MaNiC MoE •
08-06-2007, 06:49 AM
Is the "Night_Sky.css" file in the same directory as the index.html file? Is it spelled correctly? (Remember, in UNIX/Linux systems, "Night_Sky.css" is not the same as "night_sky.css".)

yep, it's in the same directory and is spelt exactly correctly (case-sensitive)!

I still don't know what's wrong :confused: !

NogDog
08-06-2007, 06:59 AM
You may need to force a refresh, in case it's using an older, cached version of the page and/or css file.

If that's not it, do you have a link we can try?

• MaNiC MoE •
08-06-2007, 07:04 AM
You may need to force a refresh, in case it's using an older, cached version of the page and/or css file.

Nope! ;(

If that's not it, do you have a link we can try?
What shall I upload, the CSS file, page or the whole thing?

• MaNiC MoE •
08-06-2007, 07:08 AM
Here's a Link :

FileUpYours! Link (http://www.fileupyours.com/files/81720/Night%20Sky.rar)
4Shared Link (http://www.4shared.com/file/21459140/fe7fa363/Night_Sky.html)

(btw, it ain't yet complete, I just wanna make sure it works!):rolleyes:

TJ111
08-06-2007, 07:35 AM
Does the page use any server-side scripting (.NET, PHP)? Do you have any other <link> tags? Is the "Night Sky" folder your page root folder?
Post the full <head> section of your page up here for people to look at.

TechEvangelist
08-06-2007, 08:11 AM
A folder called Night Sky is valid in the Microsoft world, but not on a Unix/Linux server. You cannot have a space in a folder name. If you have a space in the folder name, remove the space and see if it works. It is never a good idea to use spaces in file names or paths on a web server.

Another alternative to try is to use an absolute path to the CSS file, rather than a relative path. Just fully specify the URL to the CSS file.

Centauri
08-06-2007, 09:28 AM
Works fine without this line .......
<base href="http://www.moe-4eva.piczo.com/" target="_blank">

TechEvangelist
08-07-2007, 08:01 PM
That might be because it is invalid HTML code. There is not target="_blank" attribute in the base reference. It is not a hyperlink.

Is http://www.moe-4eva.piczo.com/ your root directory? In most situations, that's what should be in the base tag.

ray326
08-08-2007, 12:45 AM
A folder called Night Sky is valid in the Microsoft world, but not on a Unix/Linux server. You cannot have a space in a folder name.That's a common misconception. You can have spaces in file names but you have to do extra work to handle them properly.
It is never a good idea to use spaces in file names or paths on a web server. I certainly agree with that. There are too many programs and scripts that don't expect them to be there and the average user does not know how to use them properly either.

canon_006
08-08-2007, 02:26 AM
Hi,

if you remove this line

<base href="http://www.moe-4eva.piczo.com/" target="_blank">

from your index.html page, i think you will get desire result.

Please try it.

Bye

TechEvangelist
08-08-2007, 08:50 AM
That's a common misconception. You can have spaces in file names but you have to do extra work to handle them properly.
If you are referring to adding a hexadecimal %20 in place of the space, that will work, but it is kind of a sloppy way to deal with it. :) A %20 is meaningless and confusing to a user. It is always better to avoid the use of spaces.

ray326
08-08-2007, 12:14 PM
Agreed but avoiding them doesn't mean they're invalid.

• MaNiC MoE •
08-09-2007, 08:24 AM
thaaaaaaaaaaanx alot every1!! ;) ;) ;)

Yeah, you're right, the :
<base href="http://www.moe-4eva.piczo.com/" target="_blank">

was the problem...!


That might be because it is invalid HTML code. There is not target="_blank" attribute in the base reference. It is not a hyperlink.

Is http://www.moe-4eva.piczo.com/ your root directory? In most situations, that's what should be in the base tag.


Actually, it ain't the root directory, but I mis-understood what the <base> tag was for! lol :)

thanx, everyone
(sorry 4 da late replay, my connection was down...)

P.S : Thx 4 da file name tips!