List box in IE & Netscape

Results 1 to 2 of 2

Thread: List box in IE & Netscape

  1. #1
    Join Date
    Dec 1969

    Default List box in IE & Netscape

    Hi,<BR>my application has 3 list boxes which appear wider in IE than in netscape.<BR>Is there a fix for making them appear of same size in both IE and Netscape.<BR><BR>Please help me.<BR>Thanks in advance<BR><BR>regards<BR>king

  2. #2
    Join Date
    Dec 1969

    Default RE: List box in IE & Netscape

    After detecting the browser, set some variables:<BR><BR>if ie then fontSize = "2" else fontSize = "3"<BR><BR>function BoxSize(ie_size,ns_size,other_size)<BR> if ie then <BR> BoxSize = ie_size<BR> elseif ns then <BR> BoxSize = ns_size<BR> else <BR> BoxSize = other_size<BR> end if<BR>end function<BR><BR>You can add as many variables to the function as you need for various browsers.<BR><BR>Then in the form:<BR><BR>&#060;font size="&#060;%= fontsize %&#062;"&#062;<BR>&#060;input type="text" name="any_name" size="&#060;%= BoxSize(24,20,14)%&#062;" value="any_text"&#062;<BR>&#060;/font&#062;<BR><BR>You will have to experiment and put in whatever values give you the desired result in each browser.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts