sanfordss Posted March 24, 2010 Share Posted March 24, 2010 Not sure if this is a PHP thing, but its in a file with .php. I need to know how to break a list of checkbox items up on the page and continue to the right of the current column. Basically just make 2 columns instead of one long one that scrolls way down. Here's the code I have for the check boxes. How do I tell the script to break it up and make it 2 or 3 columns? Thanks! <form method='GET' onsubmit="return validateCheckbox()" action='<? $_SERVER['php-self']; ?>'> <input type='checkbox' name='category[]' value='Item1' /> Item1 <br /> <input type='checkbox' name='category[]' value='Item2' /> Item2 <br /> <input type='checkbox' name='category[]' value='Item3' /> Item3 <br /> <input type='checkbox' name='category[]' value='Item4' /> Item4 <br /> <input type='checkbox' name='category[]' value='Item5' /> Item5 <br /> <input type='checkbox' name='category[]' value='Item6' /> item6 <br /> Link to comment https://forums.phpfreaks.com/topic/196400-continuing-a-list-in-another-column/ Share on other sites More sharing options...
litebearer Posted March 24, 2010 Share Posted March 24, 2010 perhaps using divs? Link to comment https://forums.phpfreaks.com/topic/196400-continuing-a-list-in-another-column/#findComment-1031227 Share on other sites More sharing options...
o3d Posted March 24, 2010 Share Posted March 24, 2010 In its simplest form, remove the 1st, 3rd, 5th... etc <br /> tag. But you'll need to use div's or tables to space everyting out evenly. Link to comment https://forums.phpfreaks.com/topic/196400-continuing-a-list-in-another-column/#findComment-1031231 Share on other sites More sharing options...
sanfordss Posted March 24, 2010 Author Share Posted March 24, 2010 That's good enough. Thanks! Link to comment https://forums.phpfreaks.com/topic/196400-continuing-a-list-in-another-column/#findComment-1031240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.