--- Mariusz <[EMAIL PROTECTED]> wrote: > I included the following in my script in order to display a text field: > > <input type="text" name="headline" size="40" maxlength="40"> > > but when the box gets displayed in the browser and the user types in 40 characters >the box still > looks like there is more space to type in?? Is there any way to make sure that the >box "appears" > 40 characters only? > > Does it have anything to do with the fact that I call this HTML from within a >script? I thought > there was none.
No, that has nothing to do with how you are creating the HTML (unless you've created it wrong). One of the biggest, yet most over-looked problems with using a Web browser for a GUI is the design. The designer has a large degree of *influence* over how the GUI will appear, but very little control. Virually anything you wish to do to control the appearance can be overridden by the browser's settings (heck, my version of mozilla allows me to control the appearance of a page just by the way I move my mouse). You can try using style sheets to control these things better, but it will be difficult. What I typically do is make the input box noticeably shorter than the text that is entered to ensure I don't have apparent whitespace at the end. It's not an optimal solution, but neither is using a browser as a GUI client. Cheers, Ovid ===== "Ovid" on http://www.perlmonks.org/ Web Programming with Perl: http://users.easystreet.com/ovid/cgi_course/ Silence Is Evil: http://users.easystreet.com/ovid/philosophy/decency.txt __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]