March 6, 2012

Dynamic Height of LI within UL

Question by BigPoppa

So I have a Vertical UL that takes up say 400px height. Within are 3 (and only 3) li’s that I need to scale dynamically to fill the ul.

Here is a fiddle I started. I know these seems basic, but I am blanking right now.

Thanks for the Help!!

http://jsfiddle.net/NtVQs/

Answer by Starx

Giving the height of 33.33% to all li‘s solves this problem in an very simple way. Check the demo

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!