It should apply to it automatically (assuming you do actually append
that element somewhere after creating it -- you don't show your code
for doing that).

If you're not seeing the CSS applied correctly and can't immediately
figure out why, I'd recommend picking up with Step #3 from this
troubleshooting list:

T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Jun 30, 4:09 pm, serenobs <seren...@gmail.com> wrote:
> Hi.
> I wrote something like below:
> in CSS
> #Window {
>     background-color: #cccccc;
>     border: 1px solid;
> }
> in javascript
> var w = document.createElement('div');
> w.id = 'Window';
> With above code, CSS's property dosen't affect the w element.
> What's wrong?
> Thanks in advance.
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 
For more options, visit this group at 

Reply via email to