So, I approached this a little bit differently. I used an unordered list as @LJ-C suggested. There a couple of things to take away from this.. but first, here is the example made with a JsFiddle.I would like to note that one does not need to use a div within every li, but it is also completely possible. I also structured this, so that you did not need any JS, if in some case you did not know how to utilize script knowledge. However, if you know JS, then it may be easier to utilize another person's suggestions mentioned here.
Now, to save a long discussion over why vs when, first know that everybody has their own opinions over the matter. This Stack Question is very insightful and full of information if you are looking to decide to use a table vs a list.
Next, if you would like me to break the code down in the JsFiddle so that you understand it a bit more, comment below and I have no problem doing so for you. With that being said, you are free to utilize this code so that you can take a basic understanding of how this trick fully works, I actually encourage you to play with it until you finally find the perfect CSS trick that really fits your website and what you want.
Finally, I want to help as much as possible. I can only type and try to explain matters so much but to better break certain things down, The CSS Almanac is a great tool to utilize, it shows examples and even gives basic documentation, I still learn a lot from it! A few other great tools range from MDN all the way to W3 but like I said, everybody has their own preferences as to what they want to use or how they like to do things.
Just as a recap, I have restructured your code from :
<table bgcolor="#C08374" class="nav" align="center" width="1000" height="50">
<tr>
<td id="home" width="175" align="center">
<a href="index.html">Home</a>
</td>
</tr>
</table>
to look more like:
<div id='menubar'>
<div id='menu'>
<ul id='a_links'>
<li><a href="index.html">Main Page</a></li>
</ul>
</div>
</div>
So even if you don't decide to go towards using my CSS, you can always you the outline of my HTML to create a navigation bar, whether you take out the divs and use just the ul & lis, is completely up to you. One last thing that will be of use is knowing how to display something like a "table" and here is the link to do so.
As an ending note; be creative, you can do this :) Good luck in your endeavors!
- it is super easy to manipulate with CSS and effects work great. You can add :hover on li that you can set to represent the
you have way more flexibility this way
– I am Cavic Dec 25 '13 at 05:17