Solved

Overflow in Percentage does not work inside <fieldset> tag

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Increase the size of the modal in Bootstrap 5 43
Flex container exceeding stated width in IE11 4 15
How to resize a div in html 3 38
CSS Style Effect 2 10
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
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…
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…

827 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