tags:

views:

45

answers:

3

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?

+4  A: 

Doesn't get much easier than

<input type='button' ... />
<br />
<input type='button' ... />
Marek Karbarz
exactly what I needed. Thanks
ForeverDebugging
+3  A: 

in your stylesheet, add:

button {
   display: block;
}

or assign an ID to the element and use

#myButton { display: block; }
Erik
+2  A: 

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>
Kane
I'd definately choose the <p> option, because it's more semantic
jao
@jao : More semantic? In what way are the buttons paragraphs? Wrong semantics is far worse that no semantics.
Alohci