I have these two ON and OFF buttons html code below, based on condition I am displaying status on screen(I have mutliple lines for each LED), my row shifting when some displaying ON and some displaying OFF, because ON button is smaller than OFF (ON is 2 character and OFF is 3 character), Is there anyway I can specify for both should take fixed length?.
<input type="button" value="ON " style="backgrou nd-color: #00cc00; color: #ffffff;" />
<input type="button" value="OFF" style="backgrou nd-color: #cc0000; color: #ffffff;" />
<input type="button" value="ON " style="backgrou nd-color: #00cc00; color: #ffffff;" />
<input type="button" value="OFF" style="backgrou nd-color: #cc0000; color: #ffffff;" />
Comment