Why does the Close button indent to the right?

Why does the Close button indent to the right?



  1. /* 
  2. The 'Add Apps' button is aligned to the Left.  But for each toggle, the Close button indents the right.  When it toggles back to the Add Apps, that is correctly aligns to the Left.
  3. */

  4.       $(".application_add").toggle(); 
  5.       $("#application_toggle").click(function()
  6.       {
  7.             $(".application_add").toggle(); if ($("#application_toggle").attr("value") == "Add Apps")
  8.             {
  9.                   $("#application_toggle").prop('value', 'Close'); 
  10.                   $(".application_add").find("input").prop('required', true); 
  11.             }
  12.             else
  13.             {
  14.                   $("#application_toggle").prop('value', 'Add Apps'); $
  15.                   (".application_add").find("input").prop('required', false); 
  16.             }
  17.       }
  18.       );