Solved

netscape, ie, and input boxes

Posted on 2003-10-21
4
270 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Running Guacamole on port 80 5 105
Forbidden errors 5 107
Nameserver and MX Record 2 46
exchange 2010 turning off 3des ciphers 2 37
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now