Groups > IBM > Studio400 > Re: Help with spacing between field and field label




Help with spacing between field and field label

Help with spacing between field and field label
Fri, 29 Jun 2007 08:27:31 EDT
Hi,

Is there a trick to getting the spacing between the field and field label
reduced to make the screen look better?  

See my attached screenshot and look at the second column under "Employment
Information".  Can I add code to the DDS that will shrink the huge space
between the field and field label?  

I know I can go into the .jsp file after the screen is converted, but I don't
want to do it that way because every time we convert the DDS we would need to go
back into the .jsp and adjust it.

Thanks,

Post Reply
Re: Help with spacing between field and field label
Fri, 29 Jun 2007 08:42:57 -040
NFCO wrote:
> Hi,
> 
> Is there a trick to getting the spacing between the field and field label
reduced to make the screen look better?  
> 
> See my attached screenshot and look at the second column under
"Employment Information".  Can I add code to the DDS that will shrink
the huge space between the field and field label?  
> 
> I know I can go into the .jsp file after the screen is converted, but I
don't want to do it that way because every time we convert the DDS we would need
to go back into the .jsp and adjust it.
> 
> Thanks,
> 
> Chad

I would guess that it is likely due to something else on the screen. 
Try turning border widths from 0 to 1 in pagebuilder then redisplay the 
page and look at what might be moving things about?

BTW, I think the newsgroup strips attachments.

Post Reply
Re: Help with spacing between field and field label
Fri, 29 Jun 2007 10:05:29 EDT
If the newsgroup stripes attachments why are we given the option to add
attachments???????

I realize that the jsp builds columns and rows and I can see what is pushing
things over.  What I was wondering is if there is HTML or JavaScript code I can
add to the DDS to do some kind of column "merge" to bring things
closer together. 

Since you can not see the attachment, I've give you a quick example

This is how I'd like it to look

Employee Information:

First Name: __________________ 

This is how it looks(the 'b' represent blanks)

Employee Information:

First Name:bbbbbbbbbb__________________

Obviously the "Employee Information" header is pushing things over. 
Or in some cases the longest field or label is determining the column width.

Can I control this from within the DDS?

Post Reply
Re: Help with spacing between field and field label
Fri, 29 Jun 2007 15:38:44 -040
NFCO wrote:
> If the newsgroup stripes attachments why are we given the option to add
attachments???????
> 
> I realize that the jsp builds columns and rows and I can see what is
pushing things over.  What I was wondering is if there is HTML or JavaScript
code I can add to the DDS to do some kind of column "merge" to bring
things closer together. 
> 
> Since you can not see the attachment, I've give you a quick example
> 
> This is how I'd like it to look
> 
> Employee Information:
> 
> First Name: __________________ 
> 
> This is how it looks(the 'b' represent blanks)
> 
> Employee Information:
> 
> First Name:bbbbbbbbbb__________________
> 
> Obviously the "Employee Information" header is pushing things
over.  Or in some cases the longest field or label is determining the column
width.
> 
> Can I control this from within the DDS?
> 
> 

I suspect that if you turn the table borders on you will find that there 
really are no blanks/spaces after "Name:" but rather that the next
field 
is positioned further to the right than you imagine.  You may see this 
because on the green screen every char is the same wide width but using 
the typical browser font many chars are narrow and only things like W 
and M are very wide.  This will make most strings take up less 
horizontal space.  You can also play with styling like .wf_font to make 
it a bit smaller and compress things a bit. And there are Web Settings 
that can be used to reposition fields on the Web.

Post Reply
Re: Help with spacing between field and field label
Fri, 29 Jun 2007 17:05:19 EDT
Post Reply
about | contact