[thelist] Re: sticky check (was: Site check www.twitchen.co.uk/trial02/)

Mark Howells mark at mountain.ch
Tue Mar 19 03:39:00 CST 2002


>> There's code online at <http://www.mark.ac/help/sticky.html> which may suit

> I've tried implementing your code, but I can't quite get it to
> work, I was wondering if you'd mind having a quick look.

The first problem is that the Javascript and CSS files aren't where you
think they are on the server. They should be at

<http://www.twitchen.co.uk/js/sticky.js>
<http://www.twitchen.co.uk/css/sticky.css>

according to the link you're using. Using a leading slash to link to the
files means that the full path to the file starts from the web root
(www.twitchen.co.uk) and not the current folder.

The second problem is that the "sticky" div needs to be outside the main
"flow" of the document, not contained inside a table cell. E.g.

<body>
<table>
<tr><td>My content</td></tr></table>
<div id="sticky"></div>
</body>

If that doesn't fix the problems, then let me know.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list