Overflow in Percentage does not work inside <fieldset> tag

I have structure something like this:

<fieldset>
   <label.................</label>
   <div style="height:120px;overflow:auto">
        <table>
                  <tr>
                        <td></td>
                  </tr>
        </table>
  </div>
</fieldset>

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.

Regards

Gops
LVL 17
gops1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

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

Have a great day
0
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.