![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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 |
#2
| |||
| |||
|
|
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. |
|
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 |
#3
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |