Espresso
relative paths
<img src="/imgs/whatever.jpg" >It always comes up as if it doesn't exist.
Edit: let me clarify, for local viewing the paths need to be pointed at site root
Show message
Join up (it's free!) whether you're just starting out or you're crazy advanced. Get tips from people who know what they're talking about, without being treated like the playground smelly kid. Because seriously, your school classes didn't teach you anything you wanted to know.

Posted 14 May 2012 - 04:53 PM (#1)
<img src="/imgs/whatever.jpg" >It always comes up as if it doesn't exist.
arronhunt, on 30 June 2012 - 10:09 PM, said:
Posted 14 May 2012 - 05:24 PM (#2)
my_cool_website/
|- my_cool_website.esproj
|- index.html
|- imgs/
|- whatever.jpg
Posted 14 May 2012 - 05:30 PM (#3)
imgsfolder. If so, all you need to do is drop the first forward-slash to make it just
imgs/whatever.jpg. If you don't already know this, you should really fire up a terminal and play around with the
cdcommand to give you a feel for navigating a filesystem.
Posted 14 May 2012 - 05:44 PM (#4)
/users/Thomas/Dropbox/itom07/styles/CSS/style.css
/styles/css/style.cssto be the same as online. The site shows up fine but all links that are relative to root will not work (CSS,js,images)
arronhunt, on 30 June 2012 - 10:09 PM, said:
Posted 14 May 2012 - 05:49 PM (#5)
/users/Thomas/Sites/my_website/?
../../Dropbox/itom07/styles/CSS/style.csscould be tried if that reflects your folder structure.
Posted 14 May 2012 - 06:10 PM (#6)
arronhunt, on 14 May 2012 - 05:49 PM, said:
/users/Thomas/Sites/my_website/?
../../Dropbox/itom07/styles/CSS/style.csscould be tried if that reflects your folder structure.
arronhunt, on 30 June 2012 - 10:09 PM, said:
Posted 14 May 2012 - 06:45 PM (#7)
Posted 14 May 2012 - 06:51 PM (#8)
arronhunt, on 14 May 2012 - 06:45 PM, said:
arronhunt, on 30 June 2012 - 10:09 PM, said:
Posted 14 May 2012 - 09:22 PM (#9)
arronhunt, on 14 May 2012 - 06:45 PM, said:
arronhunt, on 30 June 2012 - 10:09 PM, said:
Posted 14 May 2012 - 09:40 PM (#10)
itom07, on 14 May 2012 - 09:22 PM, said:
Posted 14 May 2012 - 10:41 PM (#11)
Hyde, on 14 May 2012 - 09:40 PM, said:
arronhunt, on 30 June 2012 - 10:09 PM, said:
Posted 14 May 2012 - 11:22 PM (#12)
Hyde, on 14 May 2012 - 09:40 PM, said:
div{
width: 145px;
height:150px;
{}
.cell{
background: #ff0;
{}
&:hover{
background: #00f;
}
}
}