Home >Web Front-end >HTML Tutorial >How to vertically center two TEXTBOX in DIV_html/css_WEB-ITnose

How to vertically center two TEXTBOX in DIV_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:16:401268browse



In VS2010


Reply to discussion (solution)

line-height

<div style="height:300px;border:solid 1px red;text-align:center;">    <input type="text" style="top:50%;position:relative;" />    <input type="text" style="top:50%;position:relative;" /><div>


Please extract and organize the CSS yourself.

Just write the style sheet to achieve it

line-height
How to set it


742b984f7fd8d7b5b845d21d60f83ab9
c226414331ca9ba5b380a5aa2cb989a2
c226414331ca9ba5b380a5aa2cb989a2
dc6dce4a544fdca2df29d5ac0ea9906b

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn