I have the following HTML:
<div > <div > <div style="float: left;"> <input type="checkbox" value="False" /> </div> <div style="float: left;" > XXXXXXXXXXXXXXXXXXXXXXXXXXXXX </div> </div> </div>
It displays XXX to the right of the checkbox. However, if I reduce the width of the screen, XXX falls under the checkbox.
Is there a way that I can “block” XXX text inside a DIV so that XXXX always displays to the right and on the same line?
(Note that I want to continue to use DIV, as I do some jQuery stuff with DIVs later.)
source share