Solved

Overflow in Percentage does not work inside <fieldset> tag

Posted on 2006-11-27
3
964 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 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

Independent Software Vendors: 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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

717 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