On Wed, Jul 20, 2011 at 5:51 AM, John <[email protected]> wrote:
> There is something I'm not getting about appliying/implementing this. I've
> read a couple of links discussing it, and I see how you can manipulate text
> in a number of useful ways..
It creates new content in your page without it being part of the HTML
markup. You can style that new content however you want.
> but I don't get how I can make my center (content) column go as far,
> visually as the browser window is open, and enable scrolling, and not have
> the center column color simply end when the browser window is made shorter.
You're right. It ends at the bottom of the browser window. However, when you
scroll your content, it doesn't move because of the position:fixed. So, it has
the desired effect without having to go to the end of the page.
> If this pseudo tag idea is the key, I'm not gettin' it.
Put it in a test page and I think you'll get it :)
> thanks for shedding any light on this for me!
>
> John
>
>
>> 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/
>
______________________________________________________________________
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/