Hanging indent

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
GlennV
Propeller Head
Posts: 16
Joined: Fri Oct 09, 2009 8:08 am

Hanging indent

Post by GlennV »

Hi,

I'm looking for information on the hanging indent automatically applied to list items. How does one find the value of the hanging indent? How does one manipulate that value?

Thanks,

Glenn
NorthEast
Master Propellus Maximus
Posts: 6373
Joined: Mon Mar 05, 2007 8:33 am

Re: Hanging indent

Post by NorthEast »

You do this by editing the properties for the ol (numbered list) and ul (bullet list) styles.

padding-left sets the distance of the list item text from the left edge of the list container (ol or ul).

margin-left sets the indentation of the list container, i.e. the distance of numbers/bullets from the left margin (if using the default 'outside' position for numbers/bullets, the margin is roughly the distance to the centre of the number/bullet).


Best way is just to try it out and see what results you get.
GlennV
Propeller Head
Posts: 16
Joined: Fri Oct 09, 2009 8:08 am

Re: Hanging indent

Post by GlennV »

Thanks Dave.

Yes, I understand about padding and margins. Both of these adjustments move the bullet or number along with the text as a single unit regardless of whether it's margined in from the page edge or padded in from the box edge.

The space I'm trying to manipulate is between the bullet or number and the text itself. In page layout tools this is done using tabs, hanging indents, first line settings, etc depending on the tool. HTML doesn't have tabs.

After playing with different settings of padding, margins, and even indents it seems that the number or bullet is attached to the first line of text at a predefined, invisible, and immutable space/length between itself and the first letter of the first line.

This immutable space seems to be about 20 pixels wide. Is there any way to know the exact measurement?

Glenn
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Hanging indent

Post by LTinker68 »

GlennV wrote:This immutable space seems to be about 20 pixels wide. Is there any way to know the exact measurement?
That might be dependent on the browser and/or the font family and/or the font size.

You get more control if you don't use HTML-standard lists and instead use paragraph classes and the auto-numbering fields.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2634
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Hanging indent

Post by ChoccieMuffin »

Was there ever an answer found to this? I have numbered lists <ol> and bulleted lists <ul> and while I can get the text of the two lists lining up nicely, the bullets and numbers seem to be different distances from the text. What I wanted to achieve is to have the left edge of the bullets and numbers aligned with regular body text and the text of the lists aligned with each other, but despite faffing around for a good couple of hours, I can't figure it out. Any tips, tricks, suggestions, work-rounds or just plain hacks that I can use to make my stuff look pretty?
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
Post Reply