开发者

Aligning text box in cell if table?

开发者 https://www.devze.com 2022-12-20 08:47 出处:网络
i want to align text box to right in cell of table. it is working in firefox but in internet explorer text box is coming somewhat downwards i.e. it is not coming as perfect as in firefox.

i want to align text box to right in cell of table. it is working in firefox but in internet explorer text box is coming somewhat downwards i.e. it is not coming as perfect as in firefox.

<tr>
    <td id="searchRow">
        <img id="ima开发者_JAVA技巧g"><a href="adminLogin.php" >Admin Login</a>
        <div style="float: right;text-align: right;">Search : <input type="text" id="search"  name="search" onkeypress="return checkEnter(event)"/>
</div>
    </td>
</tr>

above is the code i have used for it. i want Admin Login to be come on left side and search: and text box to be on right side.


if the text box is not properly vertical aligned, you can use the valign attribute of the div tag:

<div style="float: right;text-align: right;" valign="middle">

or this way:

<div style="float: right;text-align: right;vertical-align: middle;">
0

精彩评论

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

关注公众号