Forum Moderators: open

Message Too Old, No Replies

Input Boxes and Dropdown Lists Display Different Widths

         

rockinthesixstring

4:12 am on Apr 28, 2008 (gmt 0)

10+ Year Member



I am creating an ASP.NET registration page where I am using TextBoxes and DropDownLists to acquire user data.

If I make all the width's look proper in one browser, the widths in all the other browsers look off. How can I make all width's uniform for all browsers?

niralsoni

11:16 am on Apr 30, 2008 (gmt 0)

10+ Year Member



I dont know about the asp.net but following code may help you out.

every html tag has 'style' attribute.

you can use it for setting up the uniform width of all tags.

eg.

<input type=text style="width:100px">
<select style="width:100px">

another way is to use stylesheets

eg.
<style>
.input {width:100px;}
.select {width:100px;}
</style>
<input type=text>
<select></select>