Consider the following two lines:
<button id="inputButton">Add text</button> <div id="aDiv" style="float:right; margin-left:-9em">4th div</div>
I am trying to get the div to appear on the same line as the button, to the right of the button, not that far away from the button.
float:right gets it on the same line, but at the other end of the line. Far away from the button, which is left justified.
My lame attempt to move the div by aadjusting margin-left did not work.
Can someone show me how to snuggle that div next to the button?
Thanks, that did it!
And thanks for the links to tutorials