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.
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.
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
}
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.
<textarea></textarea><input type="submit" class="submitbutton">
.submitbutton{
display:block;
}