HighDots Forums  

Re: GroupBox looking CSS

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: GroupBox looking CSS in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neal
 
Posts: n/a

Default Re: GroupBox looking CSS - 11-02-2004 , 01:00 PM






On Tue, 2 Nov 2004 12:50:25 -0600, Mr.Clean <mrclean@p&g.com> wrote:

Quote:
I am trying to mimic a Windows GroupBox control using fieldset, label
and radio buttons. The problem lies in that I can not correctly do the
radio buttons relative to the groupbox and the label doesn't get placed
in the right place. The word Female should be to the right of the radio
button. Should I use a label for the radio button's caption here
instead?

Can anyone help out?

http://www.austinmetrobaseball.com/groupbox.html

1) You should use label, but for other reasons.

2) You're positioning the button and not the label anyhow. See difference
below. You'll want to rename your class, as it will apply to many other
buttons. I've used it here just because it's pre-existing.

<form>
<fieldset class="GroupBox1">
<legend>GroupBox1</legend>
<div class="FFemaleRadioButton">
<input type="radio" id="sexm" name="Sex" value="male" />
<label for="sexm">Male</label>
</div>
<div class="FFemaleRadioButton">
<input type="radio" id="sexf" name="Sex" value="female" />
<label for="sexf">Female</label>
</div>
</fieldset>
</form>


Reply With Quote
  #2  
Old   
Mr.Clean
 
Posts: n/a

Default Re: GroupBox looking CSS - 11-02-2004 , 02:02 PM






In article <opsgupqgkk6v6656 (AT) news (DOT) individual.net>, neal413 (AT) yahoo (DOT) com
says...
Quote:
On Tue, 2 Nov 2004 12:50:25 -0600, Mr.Clean <mrclean@p&g.com> wrote:

I am trying to mimic a Windows GroupBox control using fieldset, label
and radio buttons. The problem lies in that I can not correctly do the
radio buttons relative to the groupbox and the label doesn't get placed
in the right place. The word Female should be to the right of the radio
button. Should I use a label for the radio button's caption here
instead?

Can anyone help out?

http://www.austinmetrobaseball.com/groupbox.html


1) You should use label, but for other reasons.

Yes, I already use it for other things.

Quote:
2) You're positioning the button and not the label anyhow. See difference
below. You'll want to rename your class, as it will apply to many other
buttons. I've used it here just because it's pre-existing.

form
fieldset class="GroupBox1"
legend>GroupBox1</legend
div class="FFemaleRadioButton"
input type="radio" id="sexm" name="Sex" value="male" /
label for="sexm">Male</label
/div
div class="FFemaleRadioButton"
input type="radio" id="sexf" name="Sex" value="female" /
label for="sexf">Female</label
/div
/fieldset
/form

Well the above isn't really what I want but it has led me to a solution.

This is a groupbox with separate radiobuttons, it can contain checkboxes
or other controls such as an edit, as well. I also have a radiogroubox,
it has only radio buttons and they have an itemindex.

I'm not making this into an inout form although the only way to get
the radios and checks is to use input tags.

I am translating a Delphi Form into an HTML page. I am going to leave it
up to the HTML designer to modify for input.


Reply With Quote
  #3  
Old   
Mr. Clean
 
Posts: n/a

Default Re: GroupBox looking CSS - 11-02-2004 , 06:09 PM



<SNIP>

Quote:
1) You should use label, but for other reasons.

2) You're positioning the button and not the label anyhow. See difference
below. You'll want to rename your class, as it will apply to many other
buttons. I've used it here just because it's pre-existing.

SNIP
what determines the positioning of the label if you don't use
CSS positioning?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.