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
or here is the code if you don't want to navigate:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type"
content="text/html;charset=is o-8859-1" />
<title>Form1</title>
<style type="text/css">
body {
background:#C2B FA5;
}
.GroupBox1 {
font-family:'MS Sans Serif';
font-size:8px;
position:absolu te;
left:25px;
top:184px;
width:149px;
height:105px;
}
.FFemaleRadioBu tton {
position:relati ve;
left: 22px;
top: 32px;
}
</style>
</head>
<body>
<fieldset class="GroupBox 1">
<legend>GroupBo x1</legend>
<input type="radio" name="Sex"
value="female"
class="FFemaleR adioButton" />Female
</fieldset>
</body>
</html>