473,508 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adjacent Fieldsets: Tables neccesary?

I'm trying to be a good little coder and design my HTML form with as
much semantic HTML and CSS as possible.

I'm using fieldsets, legends, and labels. It seems like the only way
to reliably put fieldsets next to each other on the same row is to use
table cells.

Is there a better way? I'm designing my fieldsets based on this
technique:

http://www.pixy.cz/blogg/clanky/css-...andlabels.html

(essentially floating the label next to it's input field).

Displaying the field set inline causes Bad Stuff(tm) to happen with my
formatting.

I'm not against tables, but if anyone has a better idea I'd like to
hear it.
Jul 20 '05 #1
3 9386
Trent wrote:
I'm using fieldsets, legends, and labels. It seems like the only way
to reliably put fieldsets next to each other on the same row is to use
table cells.


fieldset {
display: table-cell;
}

Or, if you want it to work with Internet Explorer:

fieldset {
float: left;
width: 10em;
}
--
Jim Dabell

Jul 20 '05 #2
sp*******@marx7.org (Trent) wrote:
I'm using fieldsets, legends, and labels. It seems like the only way
to reliably put fieldsets next to each other on the same row is to use
table cells.


Depends on your definition of "reliably". But you can use floating
(probably simplest), as suggested, or positioning.

On the other hand, why? Forms exist for the purpose of being filled out
on screen. There is no actual benefit from having fields side by side. It
can even disturb a screen reader, or a somewhat confused "normal" user.

It's normally best to put one field with its label, and nothing more, on
one line. Even the simplest screen readers can handle that, and it
maximizes the odds of correct association in the mind of a user looking
at a visual presentation.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #3
DU
Trent wrote:
I'm trying to be a good little coder and design my HTML form with as
much semantic HTML and CSS as possible.

I'm using fieldsets, legends, and labels. It seems like the only way
to reliably put fieldsets next to each other on the same row is to use
table cells.

Is there a better way?

I have used fieldset {display:inline;} so that fieldset border
shrink-wraps around content and to workaround a bug (bug 123293 in
Opera's BTS) in Opera 7.x, I dynamically set the display of fieldset to
inline-block.

http://www10.brinkster.com/doctorunc...ormatting.html

http://www10.brinkster.com/doctorunc...layInline.html

DU
I'm designing my fieldsets based on this technique:

http://www.pixy.cz/blogg/clanky/css-...andlabels.html

(essentially floating the label next to it's input field).

Displaying the field set inline causes Bad Stuff(tm) to happen with my
formatting.

I'm not against tables, but if anyone has a better idea I'd like to
hear it.

Jul 20 '05 #4

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

Similar topics

2
2999
by: PatD | last post by:
Fieldsets, as introduced with, I think, HTML 4, tend to span the entire width of the window. As most (all?) "Block", or so, elements do... What I would like, however, is a solution do cut them...
5
3104
by: Kenneth | last post by:
Can anyone explain me why it is neccesary to include SqlDbType to the SqlParameter. In every example I see, it is done, but no one explaines why. I have for example a date I want to save into my...
4
1604
by: andrew | last post by:
Hi, Let me know if I should ask this in a microsoft jscript group instead as the problem I'm witnessing only seems to appear in IE. Or if you can recommend another group if this is not an...
1
2218
by: Jimbo Jones | last post by:
G'day, I have a table of records representing a 3D block model of an orebody, such that each block has X, Y, Z and then properties (grades), such as Ni, RecNi, Cu etc, as well as 2 volume fields,...
3
2001
by: sdisalvo | last post by:
I'm looking for a way to filter records in a query (or report) based on a value in a field of an adjacent record. Can this be done easily? I cannot find any info in the help files. Thanks
2
16487
by: OceanBreeze | last post by:
Border drawn in C# Table programmatically even if several adjacent horizontal & vertical cells are empty in the table I want to programmatically have border on each and every row and column in the...
1
3660
realin
by: realin | last post by:
hi guys, i wanna set my fieldsets properly without using table.. like two fields in one row... here are my fieldsets.. <fieldset> <legend>Personal Information</legend>...
6
2012
by: Haines Brown | last post by:
I'm trying to resolve a contradictory situation in which I have rows going down a page, and each consists of two elements: to the left is a thumbnail image that is a hot link; to its right is a...
5
1736
by: Nathan Sokalski | last post by:
I'm not sure if this is the right place to ask this question, but I wasn't sure where else to go. I have a table made of the following tags: <table class="myclass"> <tbody> <tr><td>.</td></tr>...
0
7229
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
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
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...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.