开发者

How to create a button that spans the entire width of the page in HTML?

开发者 https://www.devze.com 2023-03-09 07:30 出处:网络
<input 开发者_开发问答type=\"submit\" value=\"Go!\"/> gives a button like this: I want the button to span the entire width of the page. How can I do that?<input type=\"submit\" value=\"G
<input 开发者_开发问答type="submit" value="Go!"/>

gives a button like this:

How to create a button that spans the entire width of the page in HTML?

I want the button to span the entire width of the page. How can I do that?


<input type="submit" value="Go!" style="width:100%"/>


Have you tried style="width:100%" ?


I suggest using a hyperlink instead for this and using css to style it something like this

a:hover {
  border:60px;
  border-color:blue;
  padding:30px;
  }

a {
  border:60px;
  padding:30;
  }
<a href="link">link</a>

0

精彩评论

暂无评论...
验证码 换一张
取 消