Reputation: 188
I am a newbie with html so please excuse me if the question is dumb. I want to specify a path for an image (img src=...) relative to where my HTML resides. How would I do that. By default the relative path is considered relative to the base URL (base href=...) I need it to work on both Chrome and IE on Windows
Before someone asks, obviously I need to set the base tag to some other location and hence am facing this issue.
Thanks in advance
Upvotes: 1
Views: 1536
Reputation: 18795
Regrettably (or maybe not), there is no way to achieve this in pure HTML. Possible workarounds include either not using a relative path or using JavaScript to generate an absolute path.
Upvotes: 1