Jump to content

Archived

This topic is now archived and is closed to further replies.

arielmedel

handling images?

Recommended Posts

How handle images in a way like CSS?

For example with CSS you just specify on top the URL where the CSS file is, and now you only have to assign a class to the divs, tables, etc. without having to write the all the path.

How can I put some kind of code that specifies the URL where the images are, so I just have to change that if I move the image sto another folder instead of having to change the link of each image?

Share this post


Link to post
Share on other sites
This isn't a php question, it's an HTML question, but I believe you can use the [color=green]<base>[/color] tag.

[code]<base href="http://www.mydomain.com/images">[/code]

Here's a [url=http://www.wdvl.com/Authoring/HTML/Head/base.html]further reference[/url] to it.

Regards
Huggie

Share this post


Link to post
Share on other sites
Huggie Bear:

Since I'm doing thsi site with php includes, and it's the first thing in php I do alone, I thought you'd have to use php too. But thanks for your answer!!! I'll look into it  ;D

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.