Silly little question...

They have: 16 posts

Joined: Jan 2001

Heh, forgive me, I've avoided using such things until now... But I really don't know how to use subdirectories. The only thing I really need though, is the tag for a background image, but... With an image in another subdirectory. Can it actually be done?
Thank you in advance...

mjames's picture

They have: 2,064 posts

Joined: Dec 1999

Subdirectories are a vital part to having an organized and clean web site. Let's say your background image file is in your /images directory. Then the full URL would be: http://www.yourdomain.com/images/background.gif, for example. Is that what you wanted to know?

They have: 16 posts

Joined: Jan 2001

Well... I know the background image tag is...

Along with being fixed, of course...
But can't you just add like... /Directory/Filename instead of listing the entire URL to it?

mjames's picture

They have: 2,064 posts

Joined: Dec 1999

It's best to include the entire URL or linking to an image when you're deep into other directories won't work. That's what I do, it's worth it.

But, you could add a tag to your page that will make all URLs on that page stem from a certain directory:
<BASE HREF="http://www.yourdomain.com/images">'
I'm *pretty* sure that is it, but I could be wrong. Someone double check me.

Brian Farkas's picture

They have: 1,015 posts

Joined: Apr 1999

I think he's saying he has his page in domain.com/directory/page.html
and his background image in domain.com/images/background.gif

On page.html, you could simply use the path to background.gif to use that image as the background.. For example
would work just fine.

Is this what you were asking?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.