Directories |
Directories |
CaptMarlinspike |
Dec 12 2006, 08:54 AM
Post
#1
|
Group: Members Posts: 5 Joined: 12-December 06 Member No.: 1,274 |
Sorry to have to ask dumb questions, but...
I would like to put images in a sub directory to keep things tidy. If I am using the statement <img src="6Queensoutside.JPG" width="85" height="64"> how do I reference a sub directory, say called "images", so that the html finds the picture? |
JamieHarrop |
Dec 12 2006, 09:04 AM
Post
#2
|
Advanced Member Group: WDG Moderators Posts: 129 Joined: 25-October 06 From: West Yorkshire, UK Member No.: 570 |
Use <img src="/images/6Queensoutside.JPG" width="85" height="64">
The forward slash before "images" is used to point to the root directory of your Web site ( http://www.ashburnproperty.co.uk ) |
CaptMarlinspike |
Dec 12 2006, 09:18 AM
Post
#3
|
Group: Members Posts: 5 Joined: 12-December 06 Member No.: 1,274 |
Use <img src="/images/6Queensoutside.JPG" width="85" height="64"> The forward slash before "images" is used to point to the root directory of your Web site ( http://www.ashburnproperty.co.uk ) Got it, thanks Jamie. |
pandy |
Dec 12 2006, 09:47 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Or you can use relative URLs.
'sub/pic.jpg' You can read about all that here: http://htmlhelp.com/faq/html/basics.html#relative-url |
Christian J |
Dec 12 2006, 10:07 AM
Post
#5
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Use <img src="/images/6Queensoutside.JPG" width="85" height="64"> The forward slash before "images" is used to point to the root directory of your Web site ( http://www.ashburnproperty.co.uk ) That's the best solution online. Just note that it will not work on local files, where a beginning slash equals the HD root. |
JamieHarrop |
Dec 12 2006, 10:09 AM
Post
#6
|
Advanced Member Group: WDG Moderators Posts: 129 Joined: 25-October 06 From: West Yorkshire, UK Member No.: 570 |
QUOTE(Christian J) Just note that it will not work on local files, where a beginning slash equals the HD root. Unless you have Apache installed and running and you're accessing the files through localhost, of course. But hey, that's another discussion for another day. This post has been edited by JamieHarrop: Dec 12 2006, 10:10 AM |
Christian J |
Dec 12 2006, 01:32 PM
Post
#7
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
QUOTE(Christian J) Just note that it will not work on local files, where a beginning slash equals the HD root. Unless you have Apache installed and running and you're accessing the files through localhost, of course. Doesn't work for me anyway, since my various projects are located in sub directories to localhost. QUOTE But hey, that's another discussion for another day. Absolutely. CaptMarlinspike, you can safely ignore this digression! |
Lo-Fi Version | Time is now: 24th April 2024 - 11:19 AM |