Here are some good tutorials on how to do it (using Dreamweaver, but still
applicable). The key concept is how to use the CSS pseudo-class to your
advantage.
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutorials/pseudoclasses/index.htm
For single pixel borders on tables, you cannot use the border attribute of
the <table> tag, since this is always going to give you a 2 pixel border
(it's shaded, see). You can, however use CSS easily to achieve a single
pixel border -
<style type="text/css">
<!--
table { border: solid 1px #000; }
-->
</style>
- which will give you a solid black, 1px thick border on all 4 sides of a
table.