Menu Bar Challenge

Solidus

New Member
I currently have a menu on my website www.reeextreme.net/

It works great but there's a bit of a nuisance with it however. Let's say I want to use the same layout in a sub directory, I have to write every link with a ../ in front of it.

Is there a way around having to do this?

I am thinking of making a newer title bar and I want to have to avoid putting in ../ or ../../ etc for every little thing.

Thanks!
 

PixelPusher

Super Moderator
Staff member
You are using relative file paths. Try making them absolute.

Relative
HTML:
<a href="../beer/imported-beer.aspx">Imported Beers</a>

Absolute
HTML:
<a href="/beverages/beer/imported-beer.aspx">Imported Beers</a>

By using a "/" at the start, you are telling the browser to start at the root and then follow this path. Benefit to using absolute is, no matter where you place this link, the path remains the same.
 
Top