views:

176

answers:

3

How can I place an input type=submit on a new line following a text area element?

without using a br tag or a div, ideally I like to do it using css.

+6  A: 

You can display it as a block-level element with display:block. With CSS 2 you can use this rule:

input[type=submit] {
    display: block
}
Gumbo
is this not going to stretch the button, to the whole available width?
John
@John: No, not as far as I know.
Gumbo
A: 

usually one sets the button in a new div with a style including clear:both of something... but, if you don't want to use such things, then, I don't have a proper answer for you.

Alfabravo
+2  A: 
<textarea></textarea><input type="submit" class="submitbutton">


.submitbutton{
  display:block;
}
svinto