# Returning height of relative div?

**URL:** <https://forum.kirupa.com/t/returning-height-of-relative-div/209529>\
**Category:** web dev\
**Created:** [December 9, 2006, 9:14pm UTC](https://forum.kirupa.com/t/returning-height-of-relative-div/209529 "2006-12-09T21:14:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikken](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mikken](https://forum.kirupa.com/u/mikken)\
**Post date:** [December 9, 2006, 9:14pm UTC](https://forum.kirupa.com/t/returning-height-of-relative-div/209529/1 "2006-12-09T21:14:04Z")

</div>

Hi!  
Probably a lot of people having asked the same question, but i cant’ seem to find answers here or through google, so here i go:

It would be really sweet if i could get the height of a relatively sized div.  
I have a dynamic list contained in a div, and i would like to have a dropshadow on the div. But as the list grows, the div grows, and so the dropshadowimage would have to grow. If i could retrieve the height of the div, i could use that number to resize the dropshadowimage.  
I have an underlying background-image, so the dropshadow has to use alpha transparency (which makes it impossible to use css-dropshadows)

1. Can this be done, and if yes, how?
2. If not, any other suggestions?

I thank you in advance, dear kirupians!
