CSS How to place a submit button on a new line?

后端 未结 2 1589
旧时难觅i
旧时难觅i 2021-01-17 14:42

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.

2条回答
  •  广开言路
    2021-01-17 15:09

    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
    }
    

提交回复
热议问题