This wont help you solve your problem, but it might help you figure out a solution.
http://users.bathspa.ac.uk/markhelp/...l_css_ref.html
The important parts are where it tells you how to install DOM inspector and Firefox's web developer tools.
Put a link of what you have so far, explain exactly what it is suppose to do and I will look at it tomorrow
-