On Tue, 15 Apr 2008 23:41:56 +0200
Ingo Chao wrote:

> Carol Huddleston wrote:
> > ...,
> > http://home.comcast.net/~prairiedream/beginning/faux.html
> > ...
> > My problem right now is that the background image isn't showing at  
> > all. I have faux.gif in a folder titled "images" like this:
> > 
> > /beginning/images/faux.gif
> > 
> > I also tried it like this:  /images/faux.gif (not in the the  
> > "beginning" folder). Both ways, the background image does not show. 
> > 
> 
> I think it is
> url(images/faux.gif)
> instead of
> url(/images/faux.gif)
> 
> Best regards,
> 

Ingo, here is correct Carol. What you need to understand is all URL's
addressed within CSS are relative to the CSS file calling them unless
you give the full IRL for absolute addressing. As i don't use full IRL's
in CSS i've never worked the exact syntax.

This may help for understanding relative addressing Unix style:
http://en.wikipedia.org/wiki/Path_(computing)#Unix_style
http://www.cs.washington.edu/orgs/acm/tutorials/intro-unix/unix_intro.html

*** Extract ***
Relative paths, on the other hand, start from the "current directory".
When you first log in, your Linux home directory will be your current
directory. You don't need to use any special characters to designate the
current directory in the path -- any path whose first element is not a
slash(/) is assumed to be a relative path. On the other hand, if you do
need to explicitly address the current directory, you can use a single
dot(.).

Going "down" the directory hierarchy is easy -- you just list the
directories you have to go through separated by slashes, for example the
path to the index.html file in the www directory below your home
directory is www/index.html (or, equivalently, ./www/index.html). So
that was easy, but how do you go up? Two dots (..) stand for "the parent
of this directory". For example, if your current directory were the
tutorial directory (below your home), and wanted to address the file
index.html below the www directory, you could do it like so:
../www/index.html. 
******************

-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to