Jump to content

Proportionate spacing of characters/ lining up left and right


rkass068
 Share

This topic is 2810 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

 

I have a portal with a date field in the format DD-mmmm-YYYY for example. 01-Jan-2015. 

 

I want to line up the right side and left side of each portal entry for this field so the text lines up perfectly. I am able to line up one side using the justification options but when I use full justification it does not work. Is there a way to line up the dates so that the spacing changes for some dates to meet the margins of the field and the text lines up on both sides?

 

Thanks in advance

Link to comment
Share on other sites

Hi,

 

Aren't all 'dates' 11 characters?  Shouldn't they line up?  Are you saying they are not exactly in line?  They can appear out of line because in proportional fonts, some characters are wider than others, such as I is narrower than M.  If you want them to perfectly align, use a non-proportional font.

Link to comment
Share on other sites

when I use full justification it does not work.

 

I believe full justification only works with soft line breaks; your field has only one line, and presumably the field is wide enough to show it in its entirety - so there is no soft break, and no lines above the last line to fully justify. And it would only work with spaces as word separators, not hyphens.

 

 

Is there a way to line up the dates so that the spacing changes for some dates to meet the margins of the field and the text lines up on both sides?

 

Why is this so important? IMHO, applying a monospaced font will be a cure worse than the disease (esp. if you apply it only to the dates).

Link to comment
Share on other sites

I believe full justification only works with soft line breaks; your field has only one line, and presumably the field is wide enough to show it in its entirety - so there is no soft break, and no lines above the last line to fully justify. And it would only work with spaces as word separators, not hyphens.

 

 

 

Why is this so important? IMHO, applying a monospaced font will be a cure worse than the disease (esp. if you apply it only to the dates).

 

It is important because the boss says so lol. I added a monospace font and TBH it sticks out like a sore thumb. I guess the boss will see it and change their mind. hahaha

Link to comment
Share on other sites

This topic is 2810 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.