By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,847 Members | 2,321 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,847 IT Pros & Developers. It's quick & easy.

style.paddingBottom read only?

P: n/a
I'd like to read the padding of an element. Is this possible?

Is there a good reference that has the readable DOM properties. It's
not hard to figure out the settable ones!

Jeff
Jan 17 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
me
On Jan 17, 4:00*pm, Jeff <jeff@spam_me_not.comwrote:
* *I'd like to read the padding of an element. Is this possible?

* Is there a good reference that has the readable DOM properties. It's
not hard to figure out the settable ones!

* *Jeff
Do a search for getComputedStyle (FireFox, Safari, Opera) and
currentStyle() (Internet Explorer). You'll want to write a function
that handles browser specific needs. Or, if it suits you, check out a
library jQuery or YUI. They usually include utility functions to
easily handle this and much more.
Jan 18 '08 #2

P: n/a
On Jan 17, 11:21*pm, m...@brianhurtt.com wrote:
On Jan 17, 4:00*pm, Jeff <jeff@spam_me_not.comwrote:
* *I'd like to read the padding of an element. Is this possible?
* Is there a good reference that has the readable DOM properties. It's
not hard to figure out the settable ones!
* *Jeff

Do a search for getComputedStyle (FireFox, Safari, Opera) and
currentStyle() (Internet Explorer). You'll want to write a
And realize that they are not equivalent. One returns the computed
style, the other the cascaded style.

function
that handles browser specific needs. Or, if it suits you, check out a
library jQuery or YUI. They usually include utility functions to
easily handle this and much more.
They include utility functions written by people who don't know what
they are doing. That's not good for anybody.
Jan 18 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.