Posted By

jatkins on 10/29/10


Tagged

css styling right position offset positioning


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


offsetRight


 / Published in: JavaScript
 

Public domain.

  1. function offsetRight(element) {
  2. return document.body.offsetWidth - (document.getElementById(element).offsetLeft + document.getElementById(element).offsetWidth);
  3. }

Report this snippet  

You need to login to post a comment.