Jump to content

[SOLVED] Checkbox css


mkr365

Recommended Posts

I'm finding some troubles with styling my ckeckboxes in firefox. At the moment i haven't css for my checkboxes so they are showing up from left to right, but i want my checkboxes from top to bottom.

 

Does someone know there is a standard for styling a checkbox with css?

 

Thanks in advance!

Link to comment
Share on other sites

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
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
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
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.