Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Align checkboxes in a web form
Message
De
12/03/2007 12:31:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Align checkboxes in a web form
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01202754
Message ID:
01202754
Vues:
68
When aligning a series of a checkboxes in a VFP form, it's a no-brainer, but doing so on a web form (with the goal of it looking as much as the paper form as possible) looks quite tricky.

On a paper form, the checkboxes are aligned on the right edge of the form, and the text (which would be a label in on-screen case) is anywhere to the left, most often left-aligned.

I have the whole form set as a HTML table, with text in one column, user-editable controls in another and an extra column or two with editbox for remarks, additional instructions etc. The checkboxes come into play in a multiple choice case, where user is expected to check one or more - pretty much like a multiselect listbox, except you don't have to keep ctrl pressed.

Now whatever I do I get into trouble, i.e. it doesn't look right. The form is displayed in a browser object, but I'm also checking it in Mozilla, and it looks the same there.

I tried setting the series of checkboxes and their labels in a table - left column the labels, right column the checkboxes. No matter what I do, after the page loads, the width of the checkbox's column is about 70%. I tried setting the width of the column to 5%, 10%, 2em - to no avail. The size of the marquee around the checkbox always seems to be the same as the width of textboxes in other rows.

I tried to wrap it in a span tag with fixed width, and the label in another span tag, without any table, just a series of label-checkbox-br, label-checkbox-br, with the tag for the checkbox having a width designation (2em or so), still the width of the checkbox equals the width of the textboxes.

Is there any neat trick to tame this width? I may need to make it an image checkbox somehow, but that may be too complicated for the designers - need to take care their images are packed with the page etc. I'd rather have this solved with just HTML or CSS.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform