Solved

netscape, ie, and input boxes

Posted on 2003-10-21
4
276 Views
Last Modified: 2013-12-24
netscape seems to display vastly different sizes for input boxes than ie does in forms - is there anything to do about this (such as maybe through stylesheets) so that I don't have to do browser detection everytime i want to make a form

thanks,

justin
0
Comment
Question by:newstandard
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 150 total points
ID: 9591689
a few options:

STYLE="width:150px;" SIZE=150

or

http://www.faqts.com/knowledge_base/view.phtml/aid/14184/fid/337

CJ
0
 
LVL 17

Assisted Solution

by:anandkp
anandkp earned 50 total points
ID: 9592441
Use width attribute in style sheets for IE
& use "Size" attribute to netscape

eg : STYLE="width:100px;" SIZE=20

that shld be it -

PS : they both cannot be same ... as 150 wld be tooooooooo big for netscape

Hope that helps

K'Rgds
Anand
0
 
LVL 19

Assisted Solution

by:cheekycj
cheekycj earned 150 total points
ID: 9592486
I used 150 as an example.. Any size can be used there :-)

But in essense STYLE and SIZE combination is the solution I was getting at.

CJ
0
 
LVL 35

Assisted Solution

by:mrichmon
mrichmon earned 50 total points
ID: 9781855
I would recommend NOT using the SIZE attribute in them, instead use CSS and a stylesheet to define the width of the element in pixels or do it in the style of the element.

In general I prefer to have a class that defines the width.

You can either define a named class and then apply it using the class attribute like this :

(in the stylesheet)
.myclassname {width: 200px;}

<input type="text" name="test" class="myclassname">

Or you can have the stylesheet apply the class by default to inputs like this :

(in the stylesheet)
input { width:200px;}


However, I have found that it works more reliably if you use the first option and name the class as some browsers have trouble with applying a default style to certain types of form elements.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question