?
Solved

Overflow in Percentage does not work inside <fieldset> tag

Posted on 2006-11-27
3
Medium Priority
?
965 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Steggs earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

762 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