User Name
Password
AppleNova Forums » Genius Bar »

Using CSS


Register Members List Calendar Search FAQ Posting Guidelines
Using CSS
Thread Tools
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-11-03, 09:36

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
bassplayinMacFiend
Banging the Bottom End
 
Join Date: Jun 2004
 
2005-11-03, 09:48

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
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-11-03, 10:18

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
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-11-03, 10:38



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
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

Post Reply

Forum Jump
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


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 04:52.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova