Jump to content

handling images?


arielmedel

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?
Link to comment
https://forums.phpfreaks.com/topic/24351-handling-images/
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
Link to comment
https://forums.phpfreaks.com/topic/24351-handling-images/#findComment-110764
Share on other sites

Archived

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

×
×
  • Create New...

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.