kpowers4 Posted October 2, 2010 Share Posted October 2, 2010 I have this code below that produces an array. How do i write a line of code that allows me to set its margin or alignment? foreach($food_categories as $key => $subarray) #20 { echo "<h3>$key</h3>"; echo "<ul>"; foreach($subarray as $type) { echo "<input type='radio' name='interest' value='$type'><b>$type</b><br>\n"; } echo "</ul>"; } Quote Link to comment https://forums.phpfreaks.com/topic/214959-how-to-set-a-margin-on-a-array/ Share on other sites More sharing options...
haku Posted October 2, 2010 Share Posted October 2, 2010 That's not an array, and there are no arrays in HTML. Show us the HTML output and tell us which element you want to add the margin to. Quote Link to comment https://forums.phpfreaks.com/topic/214959-how-to-set-a-margin-on-a-array/#findComment-1118210 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.