<a href="../gamesonhorses/games/blockBalance/"> only lists the files in that folder (that includes index.html) instead of invoking …/gamesonhorses/games/blockBalance/index.html".
I thought specifying index.html or index.php in a folder only required the link to provide the path to the owning folder.
Second. My folder structure is
gamesonhorses
gamesonhorses/css
gamesonhorses/games
gamesonhorses/games/blockBalance
How do I reference the stylesheet style.css that resides in gamesonhorses/css from the index.html that resides in gamesonhorses/games/blockBalance?
in gamesonhorses/games/blockBalance/index.html
<link rel="stylesheet" href="../gamesonhorses/css/style.css"> does not work
windows 10, Dell Inspiron 15 laptop using html5 on (version 53… 64-bit) Chrome
My reason for using relative links, which may be a further indication of my limited experience, is that I am doing my development on my local (XAAMP Apache) server before I move it to my Bluehost addon domain. I’m looking to do relative linking to save having to recode upon migration from xaamp/htdocs to Bluehost/public/gamesonhorses.
I still use MAMP sometimes instead of XAMPP, and to avoid this problem of different local and remote file paths, I set up MAMP as a root server. It’s very easy, and only takes a few minutes, and means you can use those universal URLs locally and remotely.
A few links for Windows and XAMPP that might help:
I switched to MAMP Pro some time ago, that allows me to run any number of hosts which are easy and quick to add, then I can use relative URL’s at any time with no problems.