| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor|
|Obtain actual rendered margin|
Is there a way?
| 12:59 pm on Apr 18, 2011 (gmt 0)|
I have an editable DIV with users inserting content and I need to obtain on each keyDown the distance their text is from the right hand margin, dynamically.
Anyone know if this is possible, without using a library like JQuery ?
| 4:59 pm on Apr 21, 2011 (gmt 0)|
You want to use the getComputedStyle method. Also thanks for asking how to do this correctly. :)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved