Results 1 to 2 of 2
Nov 28, 2005, 12:13 #1
- Join Date
- Feb 2005
- 0 Post(s)
- 0 Thread(s)
How do I find the height of a <div>?
I have some <div>s, which all have style.height = auto, or don't have a style.height, so they default to auto.
How can I find out the absolute height of the <div>?
Nov 28, 2005, 12:26 #2
Not quite sure what you're after, but if it's the size of the div when the page is rendered you can get this with the offsetHeight property. Unfortunately this is an IE proprietary property (try saying that when you're half-cut) but has pretty good support.
Off the top of my head, not sure if there's a W3C DOM equivalent.