Jump to content

[SOLVED] Checkbox css


mkr365

Recommended Posts

What do you mean by left to right? Do you mean they go across the page? Rather than go down the page?

 

If you want them to go down the page do:

<p><input type="checkbox" name="delete" value="yes"> YES<br />
<input type="checkbox" name="delete" value="No">No</p>

Link to comment
https://forums.phpfreaks.com/topic/105617-solved-checkbox-css/#findComment-541115
Share on other sites

Here is my code:

 

if ($categorien == $query['RubriekID']) 
              echo '<input type="checkbox" name="categorien[]" value="'.$query['RubriekID'].'">'.$query['Rubrieknaam'].''; 
        else 
            echo '<input type="checkbox" name="categorien[]" value="'.$query['RubriekID'].'">'.$query['Rubrieknaam'].''; 

 

They go indeed across the page instead of down the page.

Link to comment
https://forums.phpfreaks.com/topic/105617-solved-checkbox-css/#findComment-541124
Share on other sites

Just add <br /> between the empty quotes at the end of the line:

if ($categorien == $query['RubriekID']) 
              echo '<input type="checkbox" name="categorien[]" value="'.$query['RubriekID'].'">'.$query['Rubrieknaam'].'<br />'; 
        else 
            echo '<input type="checkbox" name="categorien[]" value="'.$query['RubriekID'].'">'.$query['Rubrieknaam'].'<br />';

 

Your checkboxes will now display down the page.

Link to comment
https://forums.phpfreaks.com/topic/105617-solved-checkbox-css/#findComment-541136
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.