jasonc Posted April 12, 2008 Share Posted April 12, 2008 i think i need CSS to do this but no idea what to do, please advise how i can have the radio button vertically centered in the boxes. thanks in advance. <html> <head> </head> <body> <form name="form1" method="post" action=""> <table width="200"> <tr> <td><label> <input type="radio" name="RadioGroup1" value="radio"> <img src="1.jpg"> </label></td> </tr> <tr> <td><label> <input type="radio" name="RadioGroup1" value="radio"> <img src="2.jpg"> </label></td> </tr> </table> </form> </body> </html> Link to comment https://forums.phpfreaks.com/topic/100815-radio-button-vertically-centered-in-the-boxes/ Share on other sites More sharing options...
rhodesa Posted April 14, 2008 Share Posted April 14, 2008 You will have to adjust it depending on the size of the images, but you can use the margin CSS property on the radio button: <input type="radio" value="radio" name="RadioGroup1" style="margin:5px 0;"/> Link to comment https://forums.phpfreaks.com/topic/100815-radio-button-vertically-centered-in-the-boxes/#findComment-517060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.