Click to See Complete Forum and Search --> : A whole lot of links
Is there a way to set links in a css so that I only have to type one or two words?
Basically my links are like the following:
\\blahblah\blah\somefolder\overhear\aaahhhhh\notdoneyet\finally.html
I'd like to eliminate having to type out all that stuff especially because once I finish building this it will have hundreds of links that will all have to be moved.
Help please.
JavaKid93
08-15-2006, 09:54 AM
well i dont know if yours is the same but when i link my pages i only use the TEXT.html part not the whole My Documents and stuff like that...
try it
JavaKid93
08-15-2006, 09:55 AM
ooooh i think i know what your talking about...
I would just use the file.html if they were all in the same folder but in this case I can only have the index.html accessable by those using it not all the other files.
The Little Guy
08-15-2006, 10:19 AM
if you start the link with a / it will start from the root directory.
/animal/feline/cat/house_cat.html
if you start the link with text it will start in the current directory of the current viewing file.
cat/house_cat.html
if you start with ../ than the link will start in the previous directory of the current viewing file.
../feline/cat/house_cat.html
I understand all that. My question is can this be done some how in my style sheet to set that beginning code?
The Little Guy
08-15-2006, 10:55 AM
No
Style sheets are for style only
The only thing you can do to a link with a style sheet is give the link a certain style.
I wish you wouldn't have said that. Oh well. Thanks for taking the time to let me know.
ewallace
08-15-2006, 05:14 PM
You must be buidling a really big site to have files buried that deep. If you are then it's really that much work.
You said something about having to move all the links. You should be able to move the site without changing the links if you are using relative addresses like "The little guy" described. If you're using links that point to place on your computer (like your C drive or whatnot) than you are making lots of extra work for yourself (and you'll have lots of typing to boot).
I couldn't tell from what you said which way you were doing it.
-E
It will be pretty big when done. A couple hundred pages. I know there may be better ways to do what I'm doing but with what I have to work with this seems to be my best option.
FireCracker37
08-16-2006, 12:00 AM
If it is really going to be a couple hundred pages, you might want to consider using a database, and templating it all. Imagine if one little sidebar has to be changed, just how much work you are going to have to do.
I know, I know, for some reason you say the word PHP and people start running for the hills, but to be perfectly honest, if you want to stay current, you are best off learning the technology that you have avaliable to you.