Remove white spaces from inline form-inputs If there is a form generated by drupal form api in template file, is there a way how to remove whitespaces between .form-input html elements?

My template looks like this:

            &lt;form action="" method="post" id="activit-grant-filter-form" accept-charset="UTF-8"&gt;
                &lt;div class="cont"&gt;&lt;!--
             --&gt;&lt;?php echo render($form['organisation_type']); ?&gt;&lt;!-- 
             --&gt;&lt;?php echo render($form['locality']); ?&gt;&lt;!--         
             --&gt;&lt;?php echo render($form['support_type']); ?&gt;&lt;!--     
             --&gt;&lt;?php echo render($form['thematic_objective']); ?&gt;&lt;!--
        --&gt;&lt;/div&gt;
                &lt;div class="submit-wrapper"&gt;
                    &lt;?php echo render($form['submit']); ?&gt;                       
                    &lt;?php echo drupal_render_children($form); ?&gt;
                &lt;/div&gt;
            &lt;/form&gt;


As you can see I'm using comments between form elements, but they're still keeping whitespaces in between.
Set form font size 0 and increase font size of input 

form {
    font-size: 0;
}

form input {
    font-size: 12px;