usage of   to keep input and label together

Giganews Newsgroups
Subject: usage of   to keep input and label together
Posted by:  ckirch…
Date: 12 Feb 2007


In a form I have several text or checkbox inputs with their
appropriate labels. I'd like to keep label and input together, so I
connect them with a  , like:
<input type="checkbox" name="h" value="1" id="chk"/>&nbsp;<label

Apparently this doesn't work in Firefox 2. It works in IExplorer and
Opera. As well I tried:
<input type="checkbox" name="h" value="1" id="chk"/><label

Somehow Firefox seems to think that he can break anyway between tags.
If I placed another &nbsp; within the word "Schreibweisentolerant"...

<input type="checkbox" name="h" value="1" id="chk"/><label

....Firefox would keep the two parts of the word together.

Is there any way to correct this?

Best regards,

Christian Kirchhoff