After having a cup of coffee my brain woke back up and I remembered this little formula:
CSS Width = width + margins + padding
No need for a calculator here. My page width is 800px.
Minor changes to my stylesheet:
Code: Select all
#menuwrapper {
width: 750px;
margin: auto;
padding: 0 0 0 50px;
Then a little padding for my top level links, (spreading out the fun!):
Code: Select all
#primary-nav a {
display: block;
margin: 0px;
padding: 5px 12px 0px 12px;
text-decoration: none;
font-weight: bold;
color: #672614;
Note the 0 padding on the primary-nav a class becuase if I did add padding I could not get to the sub menus due to white space.
After reading Dan Cederholms "Bulletproof Web Design" things are maybe starting to sink in.
Now to read his other book and learn what I should have learned from the begging....simple, clean, html markup.
Thanks for reading.
TJ