Jump to content

Recommended Posts

Hello,

 

How can I get text after the checkbox, on a single line.

 

 

I have tried i like this

<input type="checkbox" THIS SENS MOST ON THE SAME LINE id="uitbesteden" name="Verwerken van uw volledige administratie" value="Verwerken van uw volledige administratie" />

 

this

<input type="checkbox" <P>THIS SENS MOST ON THE SAMELINE</P>  id="uitbesteden" name="Verwerken van uw volledige administratie" value="Verwerken van uw volledige administratie" />

and this

THIS SENS MOST ON THE SAME <input type="checkbox" id="uitbesteden" name="Verwerken van uw volledige administratie" value="Verwerken van uw volledige administratie" />

 

But they all don't work.

 

Does anyone know how I can solve,

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/267203-text-after-checkbox/
Share on other sites

when I do this

<li>
	 		<input type="checkbox" id="Ochtend" name="Ochtend" value="Ochtend" />Ochtend
	 		<input type="checkbox" id="Ochtend" name="Middag" value="Middag" />Middag
	 		<input type="checkbox" id="Ochtend" name="Avond" value="Avond" />Avond
			</li>

It still under the checkbox.

 

Link to comment
https://forums.phpfreaks.com/topic/267203-text-after-checkbox/#findComment-1370216
Share on other sites

... Your form elements are all set to be 100% width. That means 100% of their parent element. Since that makes your checkbox element have a width of 100% it pushes the text to a new line.

You'll need to change your CSS to not have that happen. The quickest way is probably to give them a class and set it to width: 10px or whatever.

You can specify input types in CSS but a. I forget the exact syntax right now, b. I'm not sure what versions it's in.

Link to comment
https://forums.phpfreaks.com/topic/267203-text-after-checkbox/#findComment-1370287
Share on other sites

You can specify input types in CSS but a. I forget the exact syntax right now, b. I'm not sure what versions it's in.

@ a) input[type=XXX] {}

 

@ b)

http://caniuse.com/#feat=input-placeholder

 

This has the most comprehensive list methinks

http://wufoo.com/html5/

Link to comment
https://forums.phpfreaks.com/topic/267203-text-after-checkbox/#findComment-1370321
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.