SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    offsetHeight, clientHeight, what about height

    Hi guys, how are you all?

    Okay, so..
    offsetHeight=borderTop+paddingTop+height+paddingBottom+borderBottom
    clientHeight=paddingTop+height+paddingBottom
    (both rendered in pixels)

    Now, how would you render just the height in pixels, or set up an easy equation to figure that out (assuming height/padding is using a unit other than px).

    All thoughts and suggestions are welcome, thanks.

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe element.style.height is what you're looking for?


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
  •