• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netscape - Input Boxes

 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Input boxes in netscape (4.7) appear way wider than they actually are. I did set the size and maxLength attributes. They still appear too wide. The are displaying okay in IE. I have an input box of size 50. It's taking up almost the whoel width of the screen. Please let me know if there is a way to adjust it.

Thanks, Bosun
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For Netscape, you're stuck with the old school size tag. It doesn't listen much to CSS. I have solved the cross browser form problems one of two ways: Detect the browser on the server side and then output the appropriate code -or- detect the browser on the client side and either assign a separate CSS or write the appropriate code via javascript. hope that helps.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry buy my evil side just appeared...hahahahaha
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bosun,
truely im sorry but its just that i have been in your shoes too many times
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can come around this.
If your using asp ( maybe with javascript )
do a browsercheck in asp
<%
function BrowserWrite( ieString , nnString )

BrowserWrite = ""


If Instr ( LCase( Request.ServerVariables( "HTTP_USER_AGENT" ) ) , "ie" ) > 0 Then

BrowserWrite = ieString

Else

BrowserWrite = nnString

End If

end function
%>
now when you will set an length on an textfield you invoke it by using
<input type="text" value="testing" size="<%= BrowserWrite( intIe , IntNS )%>">
Hope this helps
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The size of an input textbox is set in character so it depends of the size of the font of the page.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should still use style sheets. Netscape formats the input boxes buttons to the font-size of the style sheet. After that you could set the size with an example of browsertype.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use a style tag in the INPUT tag, and that should work just find. Rather than using the size="" attribute, try style="width: 100px; height: 14px" or whatever the dimensions you want the input box to be....
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic