Thanks for reply.
It worked by using className.
I'm not sure about why id was not working, but anyway it is working
now using className. :)

On 7월1일, 오후4시18분, "T.J. Crowder" <[email protected]> wrote:
> Hi,
>
> 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:http://proto-scripty.wikidot.com/faq#xyzprob
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
> Independent Software Engineer, consulting services available
>
> On Jun 30, 4:09 pm, serenobs <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to