Overflow in Percentage does not work inside <fieldset> tag

I have structure something like this:

   <div style="height:120px;overflow:auto">

Overflow for the DIV works when I am hardcoding the values, here for instance 120px, but when I give it in percentages overflow is completeley ignored. But when I remove <fieldset> tag it works fine both with px and %.

But since i cannot remove fieldset, can anyone guide me, how do I go about.


LVL 17
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Mark StegglesConnect With a Mentor Web DeveloperCommented:
% heights are relative to the parent. Therefore, the fieldset needs a height style.
gops1Author Commented:
Thanks a lot Steggs. It works
Mark StegglesWeb DeveloperCommented:
no probs :)

Have a great day
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.