Text Box Sizes varies

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Text Box Sizes varies

Post by vinoth »

Hi all.
I am using Text box to my website.
The box sizes varies from IE and mozila Browser.
It looks odd is it any possible way to fix the size same on both browser.

Please provide suggestions to fix this issue.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Text Box Sizes varies

Post by Kieran Huggins »

you could simply style it with CSS.
GuitarheadCA
Forum Newbie
Posts: 20
Joined: Fri Jul 13, 2007 12:59 am

Re: Text Box Sizes varies

Post by GuitarheadCA »

If you declare a formal doctype, such as XHTML transitional, IE will render box widths the same as mozilla. Then again, you may have to update other parts of your code, but it's a good practice anyway.
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Re: Text Box Sizes varies

Post by vinoth »

I declare the formal DOCTYPE of XHTML transitional.

In text box also I fixed the size of three but in IE 7 The box size was upto 7.

Only through CSS we can restrict or any other possible Solution.
I am working with LINUX machine
Post Reply