Forum Moderators: open

Message Too Old, No Replies

shtml linking within a page (named anchors)

         

bluebottle1984

2:38 pm on May 30, 2005 (gmt 0)



Hey,
I'm having a problem creating links within a page to other parts of the page. I am using an external style sheet so my site is sitename.shtml. This is how I have it written out:
<a href="#alberta">Alberta</a> which is linked to this later on the page:<a name="alberta">Alberta</a>
It works when I've saved it as a html document, but not shtml, please help.

tedster

4:44 pm on May 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have never heard of this before - so the first thing I would suggest is validating the final shtml source output.

W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]

I am using an external style sheet so my site is sitename.shtml

Maybe I misunderstand your situation, but you can use either of these approaches in the <head> section

<link rel="stylesheet" type="text/css" href="/path/to/styles.css" />
<style type="text/css"> @import url(path/to/styles.css); </style>

...to bring in an external style sheet - no need for SSI.

BlobFisk

4:45 pm on May 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, bluebottle1984!

Have you tried using the whole filename:

<a href="filenname.shtml#alberta" title="Alberta">Alberta</a>