SitePoint Sponsor

User Tag List

Results 1 to 22 of 22

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Jan 2002
    Location
    NJ/NY
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    using javascript to change specific css parameter

    Hey, I would like to achieve something to this effect...
    Code:
    document.getElementById('hello').style.border-top = "2px red solid";
    What I'm trying to do is just change the top border color of something I defined with css. The code above of course didn't work.. heh. How would I do it?

    Thanks,
    dave
    Last edited by dtang4; Nov 5, 2003 at 16:09.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •