I almost found the answer to my dilemma in the thread from March 20, 2010 “confusion over page centering”. But not quite.
For reference, here is my website: www.wirestrungharp.com
My CSS #container" div (the word “wrapper” just doesn’t work for me) is this:
#container {
width: 1024px;
margin-left: 192px
}
The answer that almost worked was to do this:
#container {
width: 1024px;
margin: 0 auto;
}
But when I do that, the new problem is that when you drag the screen smaller certain items start moving around in relation to each other and it makes a hash of my design.
What I want is for the site to automatically center on whoever’s screen is displaying it, whatever size their view-area is, while also having a couple of nice design bars that go the entire width of the screen (one is grey and one is skinny orange). A look at the SitePoint website (home page, for example) shows what I want to achieve for my site.
I also don’t want the lower horizontal scroll bar to show up until the screen reaches the edges of the white area on either side of the actual content. The SitePoint page does what I want, but on my site the horizontal bar shows up almost immediately (even with the fix given above).
(BTW, the 20px right-hand padding in my #container div is to keep the vertical scroll bar from overlapping my content area on small screens. I have had two friends claim this to be a problem. I’m hoping it will go away when I get this other issue fixed, otherwise the 20px pad seems to be working).
I’m really hoping Ralph.m (who helped Jeannie on Mar 20) can help, or anyone else. Oh, and I also learned all I know (and some things I don’t know) from Ian Lloyd’s excellent “Build Your Own Site” book. I could not have gotten this far without it.
~Cynthia Cathcart