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

后端 未结 2 1588
旧时难觅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
    }
    
    0 讨论(0)
  • 2021-01-17 15:15
    <textarea></textarea><input type="submit" class="submitbutton">
    
    
    .submitbutton{
      display:block;
    }
    
    0 讨论(0)
提交回复
热议问题