Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Overflow in Percentage does not work inside <fieldset> tag

Posted on 2006-11-27
3
Medium Priority
?
967 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:
Mark Steggles 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:Mark Steggles
ID: 18020356
no probs :)

Have a great day
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…
Suggested Courses

618 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