Spacing for a company address

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
andrew_s
Propeller Head
Posts: 43
Joined: Tue Sep 07, 2010 11:43 am
Location: Toronto
Contact:

Spacing for a company address

Post by andrew_s »

Hi,

I'm sure this is a very basic question but I'm drawing a complete blank on how to do this.

I want to add our company name, street address, city/province/postal code/phone number each on a separate line, just like you would address an envelope.

However if I start with a <p> tag, then hit Enter after each line, obviously the next line will show with the normal spacing between <p>, which is wrong because I want them with single spacing.

How can this be done? Thanks.
Niels
Propeller Head
Posts: 89
Joined: Thu Dec 15, 2016 8:41 am
Location: Köln

Re: Spacing for a company address

Post by Niels »

Being a propeller head myself with currently no way to try out, I just guess that one of the following approaches could solve this:
  • Use shift+enter, which will break the line within one "p"
  • Apply some style derived from "p" where you define a smaller spacing
But then I think it also depends on whether you generate print or online output.
andrew_s
Propeller Head
Posts: 43
Joined: Tue Sep 07, 2010 11:43 am
Location: Toronto
Contact:

Re: Spacing for a company address

Post by andrew_s »

Thanks, Niels. I tried that, actually, but it didn't seem to do the trick, at least not for me. (Update: it DID do the trick. :lol: )
I figured that the only way would be to create a new <p> style, I will try that today.
We generate both print and online output, but for this particular case it would be PDF only.
I'll give it a shot.
Last edited by andrew_s on Tue Mar 13, 2018 6:46 am, edited 1 time in total.
andrew_s
Propeller Head
Posts: 43
Joined: Tue Sep 07, 2010 11:43 am
Location: Toronto
Contact:

Re: Spacing for a company address

Post by andrew_s »

Shift+Enter did the trick.
Thanks.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Spacing for a company address

Post by ChoccieMuffin »

Alternatively, use a div.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
andrew_s
Propeller Head
Posts: 43
Joined: Tue Sep 07, 2010 11:43 am
Location: Toronto
Contact:

Re: Spacing for a company address

Post by andrew_s »

ChoccieMuffin wrote:Alternatively, use a div.
Yeah, that was going to be my second option. But Shift+Enter seemed to work fine.

Thanks.
Niels
Propeller Head
Posts: 89
Joined: Thu Dec 15, 2016 8:41 am
Location: Köln

Re: Spacing for a company address

Post by Niels »

Good to know that this was helpful.
Just one more note: This works well with left-alignment but in case of justified style other issues arise :wink:
Post Reply