473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Fieldset height

Hello,

I have a <fieldset> in a <TD>. I want the fieldset to be as high as
the TD.

Setting the fieldset's height to 100% works in IE. Opera ignores it.
Firefox & Netscape 7.1 give it the height of the whole page. Any
suggestions? Here is my code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Test 1 2 3 </TITLE>

<style type="text/css">

td
{
vertical-align : top;
}
</style>

</HEAD>

<BODY>

<div class="header">
<h1>Fieldset Test</h1>
</div>

<div>

<table style="width:100%;">
<tr>
<td style="width:50%; height:100%;">
<fieldset style="height:100%">
<legend>Date</legend>
<label for="date">Date</label>
<input type="text" id="date" name="date"/>
<br />

<br />
<label for="timehour">Time (hh:mm)</label>
<select name="timehour" id="timehour">
<option value="" selected>
<option value="0">00
<option value="1">01
<option value="2">02
<option value="23">23
</select>
:
<select name="timemin" id="timemin">
<option value="" selected>
<option value="0">00
<option value="1">01
<option value="2">02
<option value="59">59
</select>

</fieldset>

</td>
<td style="width:50%">
<fieldset>
<legend>Location</legend>

<label for="street">Street Name</label>
<input type="text" id="street" name="street"/>

<br />
<label for="hwy">Highway #</label>
<input type="text" id="hwy" name="hwy"/>

<br />
<label for="city">City</label>
<input type="text" id="city" name="city"/>

<br />
<label for="sector">Sector</label>
<input type="text" id="sector" name="sector"/>

<br />
<label for="state">State</label>
<input type="text" id="state" name="state"/>
</fieldset>
</td>
</tr>
</table>

</div>
</body>
</html>
Jul 20 '05 #1
3 20207
In article <22**************************@posting.google.com >,
sp*******@marx7.org (Trent) wrote:
I have a <fieldset> in a <TD>. I want the fieldset to be as high as
the TD.


Setting the TD as high as the FIELDSET will solve your problem. You
won't have to do anything for that, as a matter of fact.

Though, I find it an odd thing, to have a FIELDSET inside a TABLE. There
are cases in which authors choose to layout parts of a form using a
table, but then they use the FIELDSET markup outside of the table.

Are you sure you need a table in the first place?

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #2
Kris <kr*******@xs4all.netherlands> wrote in message news:<kr*****************************@news1.news.x s4all.nl>...
In article <22**************************@posting.google.com >,
sp*******@marx7.org (Trent) wrote:
I have a <fieldset> in a <TD>. I want the fieldset to be as high as
the TD.


Setting the TD as high as the FIELDSET will solve your problem. You
won't have to do anything for that, as a matter of fact.

Though, I find it an odd thing, to have a FIELDSET inside a TABLE. There
are cases in which authors choose to layout parts of a form using a
table, but then they use the FIELDSET markup outside of the table.

Are you sure you need a table in the first place?


Hello,

The only reason I'm using a table is because I'd like to have 2
fieldsets next to each other on the same line. This works by putting
them each in a <td>.

Re: setting the TD as high as the fieldset: what about when I have two
TD's next to each other with different sized fieldsets in them? All I
want is the smaller fieldset to fill up the TD.
Jul 20 '05 #3
In article <22**************************@posting.google.com >,
sp*******@marx7.org (Trent) wrote:
I have a <fieldset> in a <TD>. I want the fieldset to be as high as
the TD.
Are you sure you need a table in the first place?
The only reason I'm using a table is because I'd like to have 2
fieldsets next to each other on the same line. This works by putting
them each in a <td>.

Re: setting the TD as high as the fieldset: what about when I have two
TD's next to each other with different sized fieldsets in them? All I
want is the smaller fieldset to fill up the TD.


Apply whatever appearance you want to the TDs instead of the FIELDSETs.

td { border: 2px solid red; }
fieldset { border: 0; padding: 0; }

<td>
<fieldset>
...
</fieldset>
</td>
<td>
<fieldset>
...
</fieldset>
</td>

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Ian Rastall | last post by:
I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ... I wrote a small test file:...
0
by: Anne van Kesteren | last post by:
Ok, here it goes. Originally I submitted this proposal to www-style. Since I don't get feedback there, I think I missed a few (maybe a lot) of points. Proposal:...
2
by: Marek Mänd | last post by:
Can the legend element in fieldset be placed automatically by Mozilla horizontally in the middle of fieldset?
2
by: luke | last post by:
I'm trying to use an image as a background for a text input box. <form> <fieldset><input type="text" name ="blah" class="cheese"></fieldset> </form> I'm using this code as part of my css to...
6
kestrel
by: kestrel | last post by:
i cant get my fieldset to work properly i have a form with two fieldsets, separating the required forms and optional but the one around the optional isnt working heres what i have: ...
1
by: Nate12o6 | last post by:
Hey guys, i am having trouble with getting the heights corrected on my fieldset. Right now i have 2 table cells side by side. And inside of each there is a field set. The fieldset to the right...
1
by: mascouta | last post by:
I have a lot of problems with IE browser, one of them is described in this topic. in my website i have div Calculator with background image. it displayed perfectly with Firefox browser however in IE...
2
by: Vajrala Narendra | last post by:
hi all, am working on a project in asp.net in designing means in source code i used fieldsets. while design time it is appering normally, but in run time the positions of that fildsets were...
1
by: BlueG | last post by:
I wrote simple code for expandable/collapsable fieldsets. You can try it yourselves: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.