Jump to content
Stef's Coding Community
Sign in to follow this  
NikMac

CSS Beginner - I can't link to an external stylesheet? [fixed]

Recommended Posts


 

Notice the "./" in front of the file reference?

That means to start looking in this folder (the location of the html file).

"../" means to go "back" one folder to start looking.

 

This is referred to as "relative addressing" . Google it.

Share this post


Link to post
Share on other sites

Hi, thanks for the quick reply.

 

Edit: Sorry, I misunderstood - you're saying the code should be


?

I tried that and nothing is changing.

Edited by NikMac

Share this post


Link to post
Share on other sites

Sorry about that, at first I thought you meant the "./" was a mistake. It changes nothing in the html preview - is it a problem if my root directory for the website contains spaces? I tried it without spaces, bur nothing happened.

 

Edit: My apologies - the ./ did work. Sort of. When I preview index.html in a browser, it is styled correctly. There must be some problem with Komodo Edit's internal preview, so I'll take this to their website now.

 

Edit2: Yes, it seems this is a reported bug when running Komodo Edit on Mac OSX 10.5/10.6 . It is fixed by putting <?xml version="1.0" encoding="UTF-8"?> at the top of the document.

 

Thanks for your help.

Edited by NikMac

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...