roeyhaim Posted December 9, 2010 Share Posted December 9, 2010 Hello please help me. i dont understand why but in all the radio that this function create i have break between the radio and the text I attached an image that show you what i got... any idea how to solve this? <table width="80%" dir="rtl"> <?php $i = 0; foreach($files as $pName) { echo "<tr>"; echo "<td>" . $pName . "</td>"; echo "<td>"; echo "<input type='radio' name='pageCode$i' value='$editCode[$pName]' />Edit</td>"; echo "<td><input type='radio' name='pageCode$i' value='$showCode[$pName]' />show</td>"; echo "<td><input type='radio' name='pageCode$i' value='' />none</td>"; echo "</tr>"; $i++; } ?> </table> [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/221088-radio-button-help/ Share on other sites More sharing options...
Buddski Posted December 9, 2010 Share Posted December 9, 2010 Do you have any CSS that affects the height and/or width of input fields? The PHP looks ok. Link to comment https://forums.phpfreaks.com/topic/221088-radio-button-help/#findComment-1144787 Share on other sites More sharing options...
roeyhaim Posted December 9, 2010 Author Share Posted December 9, 2010 no... because when i write it as HTML code (not inside PHP ) its OK this is my css for this page: body, html { margin:0; padding:10px; color: #242424; background-color: #EBEBEB; background-image: url('../images/page_g.jpg'); background-repeat: repeat-x; background-attachment: fixed; background-position: top left; font-family: "Times New Roman", arial, sans-serif; z-index: -1; } a{ color: black; text-decoration: none; border-width: none; } textarea, select{ border: 1px solid gray; } input { text-align: center; } input, textarea{ width:75%; border: 1px solid gray; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; /* future proofing */ -khtml-border-radius: 5px; /* for old Konqueror browsers */ } select { width:75%; border: 1px solid gray; } Link to comment https://forums.phpfreaks.com/topic/221088-radio-button-help/#findComment-1144955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.