25 chars of wasted space.
|
Ok, so I've been using CSS for a while, but I've just run into a problem.
I've been working on my test page and I am having trouble having this page work with an external CSS file. But ast3r3x, you may be say, according to your code you ARE using an external CSS file. Well that's true, however I can't get it to work if the CSS is in a different directory. Works: /example.php /box.css Doesn't Work: /example.php /styles/box.css Now I thought I remember this happening before, and I fixed it by using Code:
@import "css file" instead of Code:
<link rel="stylesheet" type="text/css" href=" css file" /> , but that doesn't work. I've tried relative paths, and urls to the actual page. Any ideas? |
quote |
Banging the Bottom End
Join Date: Jun 2004
|
Your relative URLs may not be coded correctly. For example, a relative URL for a file in the parent directory would look like:
../parent_dir_file A directory below the current directory would look like: ./dir/cssfile.css |
quote |
25 chars of wasted space.
|
Didn't seem to have helped, but keep in mind that I'm loading another CSS file, and it's working using @import.
I also switched them both to Code:
<link rel="stylesheet" type="text/css" href="rel path" /> and the main one loaded, but not the one for my box.I'm reformatting his CSS closer to the way that I do it and we'll see if that makes a difference. |
quote |
25 chars of wasted space.
|
Heh, I wasn't using url...url address any more for my images like I normally do in my CSS file. That is the cause |
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS : substituting images for text | drewprops | Genius Bar | 3 | 2005-04-06 07:13 |
CSS Encription Error using Popcorn | zman2005 | Genius Bar | 6 | 2005-03-17 16:57 |
CSS question. | Wickers | Genius Bar | 33 | 2005-01-04 16:49 |
CSS Positioning | ast3r3x | Genius Bar | 20 | 2004-07-24 22:38 |