melissamiller — 2011-07-03T15:22:29-04:00 — #1
I don't even know what to call what I'm trying to do, so here's a link. I want this effect of having the center panel standing out some from the background. Living Digitally
ralphm — 2011-07-03T18:54:48-04:00 — #2
All they've done there is have a background image on the <body> element repeating down the page. If your design s fixed-width, that's the easiest way to do it. Here's their code:
background: url("body.gif") repeat-y scroll center top #505050;
The image is wider than the content, and has the shadow effect on each side.
You can also do this with CSS3, though it doesn't work in all browsers.
melissamiller — 2011-07-03T20:09:37-04:00 — #3
Thanks Ralph, I really appreciate it. I knew that it must be easy, I see it done so much, but for some reason easy is sometimes really confusing to me.
ralphm — 2011-07-03T20:12:44-04:00 — #4
You're welcome. Most browsers have dev tools that allow you to peek under the hood and see what's going on. My preferred tool is Firebug for FF, but other browsers like Chrome have these tools built in. It's really easy to see that there's a background image on the body element using these tools.
melissamiller — 2011-07-04T11:49:48-04:00 — #5
Got it, and thanks again!