sigung_q Posted June 8, 2014 Share Posted June 8, 2014 Greetings all!! OK, so here's the original code line: <img class="xr_ap" src="member_album1_htm_files/564.png" alt="" title="" style="left: 0px; top: 0px; width: 1375px; height: 00001050px;"/> However, I use this, and other images from the same directory in quite a few other pages. However, those pages will not be in the same directory. So I changed the code line to this: <img class="xr_ap" src="c:/photo_album_lib/member_album1_htm_files/564.png" alt="" title="" style="left: 0px; top: 0px; width: 1375px; height: 00001050px;"/> Hoping to have one central repository of common graphics and style sheets. However, the browsers act as if there is nothing there. Is there a way to do this, or do I have to repeat copy everything into every directory for every page? If so, things are going to get very cluttered very quickly. Link to comment Share on other sites More sharing options...
Ingolme Posted June 8, 2014 Share Posted June 8, 2014 Some browsers might not work with absolute file paths for security reasons. Use relative paths. You can use ../ to move up a directory from the current HTML file's location. Link to comment Share on other sites More sharing options...
sigung_q Posted June 8, 2014 Author Share Posted June 8, 2014 Thank-you Foxy! You just cured all my angst. :-) Link to comment Share on other sites More sharing options...
davej Posted June 8, 2014 Share Posted June 8, 2014 Relative paths are the norm. Also an empty string as an alt attribute will not validate, and leading zeros on the height is a bad idea that could cause trouble. Link to comment Share on other sites More sharing options...
dsonesuk Posted June 8, 2014 Share Posted June 8, 2014 An empty string value for alt attribute on img tag WILL pass validation, no alt attribute at all will cause validation warning. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now