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?
>
Are you sure there isn't another element with id 'Window' somewhere on
the page? That is illegal HTML. Most browsers will accept it, but
their behaviour about it is unpredictable.

Colin


--~--~---------~--~----~------------~-------~--~----~
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