Solved

Overflow in Percentage does not work inside <fieldset> tag

Posted on 2006-11-27
3
959 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:gops1
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Steggs earned 125 total points
ID: 18018538
% heights are relative to the parent. Therefore, the fieldset needs a height style.
0
 
LVL 17

Author Comment

by:gops1
ID: 18020323
Thanks a lot Steggs. It works
0
 
LVL 30

Expert Comment

by:Steggs
ID: 18020356
no probs :)

Have a great day
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now