Ghodmode;

would you please clarify what you have below as "body:after"

Is this a different tag I'd be applying?

thanks!

John


On Jul 14, 2011, at 1:34 PM, Ghodmode wrote:

Approach the problem differently.  You want a differently colored
background to your content, right?  Try adding some content with
position:fixed with a negative z-index to force it behind the content.
 Then, it's still only the height of the viewport, but it doesn't move
when you scroll.

body:after {
  content: ".";
  font-size: 0;
  display: block;
  position: fixed;
  top: 0;
  left: 50%;
  width: 770px;
  height: 100%;
  margin-left: -385px;
  background-color: gray;
  z-index: -1;
}

This way has the added benefit of removing an element from your
content that was only there for presentation anyway.
--

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to