dizyn
11-19-2008, 11:22 AM
if i use following code its creates problem
I want it like:
Radio button then text, radio button then text etc
<style type="text/css">
#outpsp{margin:0px auto; width:330px;padding:2px;background:#FFE5E5;border: 1px solid #FFB2E5;}
.rad1{ width:30px; float:left; height:25px;}
.rad2{ width:30px;float:left;height:25px;}
</style>
<div id="outpsp">
00
<div class="rad1"><input name="radiobutton" type="radio" value="1" /></div>
<div class="rad2"><input name="radiobutton" type="radio" value="2" /></div>
</div>
But when i remove the radiobutton it works fine
like:
<style type="text/css">
#outpsp{margin:0px auto; width:330px;padding:2px;background:#FFE5E5;border: 1px solid #FFB2E5;}
.rad1{ width:30px; float:left; height:25px;}
.rad2{ width:30px;float:left;height:25px;}
</style>
<div id="outpsp">
00
</div>
I don't know what's the problem
I want it like:
Radio button then text, radio button then text etc
<style type="text/css">
#outpsp{margin:0px auto; width:330px;padding:2px;background:#FFE5E5;border: 1px solid #FFB2E5;}
.rad1{ width:30px; float:left; height:25px;}
.rad2{ width:30px;float:left;height:25px;}
</style>
<div id="outpsp">
00
<div class="rad1"><input name="radiobutton" type="radio" value="1" /></div>
<div class="rad2"><input name="radiobutton" type="radio" value="2" /></div>
</div>
But when i remove the radiobutton it works fine
like:
<style type="text/css">
#outpsp{margin:0px auto; width:330px;padding:2px;background:#FFE5E5;border: 1px solid #FFB2E5;}
.rad1{ width:30px; float:left; height:25px;}
.rad2{ width:30px;float:left;height:25px;}
</style>
<div id="outpsp">
00
</div>
I don't know what's the problem