NetTalk Central

Author Topic: Form Prompt Text is wrapping around and on top of itself  (Read 3603 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Form Prompt Text is wrapping around and on top of itself
« on: January 23, 2010, 02:02:15 AM »
Has anyone seen this problem:

http://www.sterlingdata.com/wam problem.jpg

When the IE window is maximized it's OK but as soon as I reduce the window size the problem shows.  I know that the prompt "column" will wrap in these circumstances but how can I stop it overlaying the first line?  I don't want to use Span because I think the "ragged" left edge look is hard to follow.

Using NT4.40 and C6.3

thanks

Mike Mcloughlin
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Form Prompt Text is wrapping around and on top of itself
« Reply #1 on: January 25, 2010, 10:37:43 PM »
Hi Mike,

try adding NoWrap to the prompt class on the form. In NT4 it's a little harder than NT5.

NT4:
Net Web Form Settings
CSS Classes tab
Set Prompts To
'FormPrompt NoWrap'

be careful, it's case sensitive.
This only applies to this form though, so you'll need to repeat for each form that has this issue.

NT5:
WebServer procedure
Extensions
NetTalk Object
Settings Tab
Styles Tab
Form Tab
Set Prompt Class to
'nt-form-div nt-prompt nt-nowrap'

You can also override it on the procedure level if you like.
In NetTalk 5 all "class" prompts behave the same way: If they contain a leading space then they are _added_ to the existing styles for that element, if they do not contain a leading space then they _override_ the css for that element.
So if you set the prompt class, on the form itself, to
' nt-nowrap'
(with a leading space)
then the default global styles ('nt-form-div nt-prompt') would still be applied.

Cheers
Bruce

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: Form Prompt Text is wrapping around and on top of itself
« Reply #2 on: January 29, 2010, 09:04:22 AM »
That fixed it

thanks

Mike
Mike McLoughlin