SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    currentStyle Div Border Width?

    Is it possibly to get the border width of a div element whose css property was not set in inline? I put together this little test and IE returns undefined.

    Any help would be appreciated.

    Test 1.
    Code:
    <html>
      <head>
       <title>Border Test</title>
       <style>
         .my_border { border: #f00 1px solid; }
       </style>
     </head>
     <body>
       <div class="my_border" onclick="alert(this.currentStyle.border);"></div>
     </body>
    </html>
    PHP MySQL Shopping Cart
    www.eprocart.com

  2. #2
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything sorted out feel free to mark this thread resolved.
    PHP MySQL Shopping Cart
    www.eprocart.com


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
  •