Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Thursday, August 23rd, 2007

Time Event
1:29a
Using Javascript to get style sheet values
I found that these two links were helpful:

for global and external values
http://www.javascriptkit.com/dhtmltutors/dhtmlcascade.shtml

and for
offsetHeight - height in pixels
offsetLeft - distance of paragraph from the left, in pixels (left of what? see below)
offsetTop - distance of paragraph from the top, in pixels (top of what? see below)
offsetWidth - width in pixels

http://www.quirksmode.org/dom/getstyles.html


Works only if inline stlyes are declared (no one wants to put inline styles in to everything.)
document.getElementById(elementID).style.height

<< Previous Day 2007/08/23
[Calendar]
Next Day >>
About LiveJournal.com
Image