title: How to align buttons properly in css/asp.net?
body: <p>I'm trying to align 2 sets of buttons to the panel in the div above. The buttons called but1, but2 for the left panel. The others are but1, but2, but3 right panel. At the moment the buttons are in a straight line under the 2 panels. So I would like the 2 left buttons right under the left panel aligned left. The 2 right buttons right under the right panel align left?</p>
  
  <p><strong>HTML</strong>:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;style&gt;
          div.input
          {
              clear: left;
              margin: 0 0 0.2em;
              padding: 6pt 1em;
          }
  
          .flclass
          {
              float: left;
          }
  
          .imageDetails
          {
              color: Gray;
              line-height: 1.2;
              margin: 34px 0 0 10px;
          }
  
          input.special
          {
              background: none repeat scroll 0 0 #913297;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div class="input"&gt;
          &lt;label&gt;
              panel 1&lt;/label&gt;
          &lt;asp:Panel CssClass="flclass" ID="pnlcustomerImage" runat="server" Style="background-color: #DDDDDD;
              border: solid 1px black; vertical-align: middle; text-align: center; padding: 0"
              Width="200px" Height="70px"&gt;
              &lt;asp:Literal ID="lt1" runat="server" Text="Panel left" /&gt;
              &lt;asp:HyperLink ID="hl1" runat="server" Target="_blank"&gt;
                  &lt;asp:Image ID="im1" runat="server" Visible="false" Width="200px" Height="70px" AlternateText="Contact Admin to change your image" /&gt;&lt;/asp:HyperLink&gt;
          &lt;/asp:Panel&gt;
          &lt;div class="flclass"&gt;
              &lt;p class="imageDetails"&gt;
                  &lt;asp:Literal ID="lt4" Text="what to write here?" runat="server" /&gt;
              &lt;/p&gt;
          &lt;/div&gt;
          &lt;label&gt;
              small image&lt;/label&gt;
          &lt;asp:Panel CssClass="flclass" ID="pnlAgentSmallLogo" runat="server" Style="background-color: #DDDDDD;
              border: solid 1px black; vertical-align: middle; text-align: center;" Width="120px"
              Height="42px"&gt;
              &lt;asp:Literal ID="lt2" runat="server" Text="Panel right" /&gt;
              &lt;asp:HyperLink ID="hl2" runat="server" Target="_blank"&gt;
                  &lt;asp:Image ID="im2" runat="server" Visible="false" Width="120px" Height="42px" AlternateText="Contact Admin to change your image" /&gt;&lt;/asp:HyperLink&gt;
          &lt;/asp:Panel&gt;
          &lt;p class="imageDetails" style="margin-top: 5px"&gt;
              &lt;asp:Literal ID="lt3" Text="what to write here?" runat="server" /&gt;&lt;/p&gt;
          &lt;div class="input" style="margin: top"&gt;
              &lt;label&gt;
              &lt;/label&gt;
              &lt;asp:Button ID="btn1" runat="server" Text="but1 left" CssClass="special" Style="margin-top: 54px;
                  margin-left: 10px" /&gt;
              &lt;asp:Button ID="btn2" runat="server" Text="but2 left" CssClass="special" Style="margin-top: 54px;
                  margin-left: 10px" Visible="true" /&gt;
  
              &lt;asp:Button ID="btn3" runat="server" Text="but1 right" CssClass="special" Style="margin-top: 26px;
                  margin-left: 10px" /&gt;
              &lt;asp:Button ID="btn4" runat="server" Text="but2 right" CssClass="special" Style="margin-top: 26px;
                  margin-left: 10px" Visible="true" /&gt;
              &lt;asp:Button ID="btn15" runat="server" Text="but3 right" CssClass="special"
                  Style="margin-top: 26px; margin-left: 10px" Visible="true" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>