The code below works jiffy until I put a table within the Primary Content area. Then the secondarycontent is still on the right but pushed below the primary content. BTW, the table is for tabular data.
I think I see why. You have margins on both your primary container and primary content divs, which add up to 470 pixels. Your sidebar div is 200 pixels wide. That means you've used 670 pixels of space up before you even put content into the primary content div.
Take out some of that white space, and you'll at least be closer to fine.