because the body is not a dynamically added element !!!

I want to add an element to the document dynamically and have it appear in 
the center of the screen no matter where the scroller is


Thanks for the reply

I sorted it

Alex
----- Original Message ----- 
From: "asterix" <m...@free.fr>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Friday, February 13, 2009 2:45 PM
Subject: [Proto-Scripty] Re: Centering


>
> Hey, guys !
>
> There's an answer, that i use on my site http://famille.lhuillier.free.fr
> You can see that live at this adress.
>
> It's just a bit of CSS :
>
> <style type="text/css">
> body {
> font-family:Verdana, Arial, Helvetica, sans-serif;
> font-size:12px;
> color:#666;
> background:center no-repeat fixed #333333;
> background-image:url(images/fond_014.png);
> cursor:default;
> margin:0px;
> }
> </style>
>
> It centers the background image horizontally and vertically.
>
> You'll have to adapt to your needs...
>
> A question : Why to put JS code where a simple CSS declaration can do
> it fine ?
>
> Best regards.
> Michel L'HUILLIER
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to