I haven't done a lot of HTML in the past.
What is the easiest why to display two buttons, one underneath the other, without using a table?
I haven't done a lot of HTML in the past.
What is the easiest why to display two buttons, one underneath the other, without using a table?
Doesn't get much easier than
<input type='button' ... />
<br />
<input type='button' ... />
in your stylesheet, add:
button {
display: block;
}
or assign an ID to the element and use
#myButton { display: block; }
There are a number of ways using just html (obviously switch the asp:Button tag for an input="button" tag as you need).
Using simple line break tag
<asp:Button runat="server" id="Button1" text="Button 1" /><br />
<asp:Button runat="server" id="Button2" text="Button 2" />
Using Div tags
<div><asp:Button runat="server" id="Button1" text="Button 1" /></div>
<div><asp:Button runat="server" id="Button2" text="Button 2" /></div>
Using Paragraph tags
<p><asp:Button runat="server" id="Button1" text="Button 1" /></p>
<p><asp:Button runat="server" id="Button2" text="Button 2" /></p>