Paragraph Leading

I’ve got a Freeway text style which has ‘leading’ of 130% (has the same effect as line-height in CSS)

But if you have a separate element below the text block to which this is applied, it gets pushed down the page, as though the leading is continuing its effect on the white space after the text. The 130% leading seems to be applying not just to the text but is shunting down any element that follows it.

Is there any css attribute I can add in the style dialogue to stop this shunting effect?

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Look at Space Before and Space After (in Freeway-speak) meaning margin-top and margin-bottom in CSS. The default for a P tag is 1em if you don’t specify anything. Because of the way that margins react to one another on peer objects, you don’t see 2 ems between your paragraphs, only 1.

Walter

On Jun 28, 2012, at 9:58 AM, hugh wrote:

I’ve got a Freeway text style which has ‘leading’ of 130% (has the same effect as line-height in CSS)

But if you have a separate element below the text block to which this is applied, it gets pushed down the page, as though the leading is continuing its effect on the white space after the text. The 130% leading seems to be applying not just to the text but is shunting down any element that follows it.

Is there any css attribute I can add in the style dialogue to stop this shunting effect?

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter, thanks.

I replaced the ‘default’ in space after with ‘0px’ - that certainly helped get rid of the white space between the text and following elements. But it also, oddly, seemed to reduce the leading! So I had to readjust the leading from 130% to 150% to get the line separation as it was. Strange!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As usual a link would help us spot if there was anything else going on in there.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options