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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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