dimanche 16 septembre 2018

Why is the label "container" on this checkbox, NOT allowing the text to be checkable along with the checkbox itself?

This checkbox works, but using the label as a container around the input element is not allowing the long text to be included in the area that users can check on to toggle the checkbox on and off.

Why not? How do I make it include it? I only know HTML, PHP and CSS so am sticking with those.

<label for "dmembership">
<input type="checkbox" name="dmembership" id="dmembership"
>Add $20 to join the group as an associate member (those without children in our school,) to cover the expense of mailings to keep you informed of upcoming events</label>

This radio button also created in a container using the label does include the text in the clickable area.

  <label>  <input type="radio" name="damount" id="damount" value="15"> $54</label>

I've put them both into a snippet:

<form action="/Online/DonateOnline.php" name="dform" target="_self">


<label for "dmembership">
    <input type="checkbox" name="dmembership" id="dmembership"
    >Add $50 to join the group as an associate member (those without children in our Sunday School,) to cover the expense of mailings to keep you informed of upcoming events</label>
 
 <br> <br>  <br>  
    
    <label>  <input type="radio" name="damount" id="damount" value="15"> $15</label>
     
 <br> <br>  
 
     <label>  <input type="radio" name="damount" id="damount" value="25"> $25</label>
     
      <br> <br>  <br>
     
 
   <label for "radiomem">
    <input type="radio" name="radiomem" id="radiomem"
    >Same thing but with a radio button.  Also doing it shorter didn't fix it either.</label>
    
    </form>



Aucun commentaire:

Enregistrer un commentaire