Centered fixed-width layout with fullscreen-width backgrounds?

I've ended up with this structure: ... ... ... and the style looks like #... { background:#... } . Wrap div { width:950px; margin:0 auto; } Thanks everyone.

What I do in cases like that is style the html or body with the main background color (the one for your content), then keep the header and footer out of the main wrapper and size down their contents as needed, so I'd end up with something like so (which I think is similar to what you're saying you did, but with a couple minor differences): Whatever content stuff, other divs, etc. You don't really need extra wrappers if you have only a couple block level elements in your header and footer, so you end up with about the same number of divs as if you had them all in one wrapper. You can also keep their sizes in sync if you put them in one CSS call with the size.It might sacrifice a little bit in the way of CSS efficiency, but in my experience, it's a small enough trade off that it's not worth losing sleep over, since either the site is small enough that it doesn't matter, or large enough that there are better efficiency increases in places like the images, javascript, and server-side code.

Thanks for the tip. Your solution looks pretty much like SO's, but I might have a few more blocks in the content area that should have 100% background. Otherwise, I would do it your way.

– bassneck Jan 26 at 16:30 @bassneck: What do you mean by having a few more blocks in the content with 100% background? Like going the width of the viewport, or filling their containers? Basically, for designs I've done, not much needs to go the width of the viewport, but what does simply gets taken out of the wrapper (alternatively, you might be able to do it without a wrapper and just use the same technique that I've posted), or see if your full-width elements have the same background and just use that as the body background.

This all, of course, depends on the specific design (and without it, I'm kind of blind). – Shauna Jan 26 at 17:56.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions