User talk:Windinthew/Multi-column lists

From Audacity Development Manual
Jump to: navigation, search
These are unordered lists. There are further considerations with ordered lists not explored here.


Multiple lists side-by-side formatted in a table

NVDA reads as two downwards-ordered lists (and does not mention "table"), but David B did not point to this solution and suggested it was better not to put a list inside a table.

  • 1 You have followed a
  • 2 page that does not exist yet. To create the page,
  • 3 start typing
  • 4 in the box below (see the help page for more info).
  • 5 If you are here by mistake, click your browser's back button.
  • 6You have followed a link to a page that does not exist yet. To create the page, start typing in the box below
  • 7 (see the help page for more info). If you are here by mistake, click your browser's back button.
  • 8 short


Multiple div-separated lists floated side-by-side

  • AloeAloe
  • BergamotBergamotBergamotBergamot Bergamot
  • Calendula
  • Damiana
  • Elderflower
  • Feverfew
  • Ginger
  • HopsHopsHopsHopsHopsHops
  • Iris
  • Juniper
  • Kava kava
  • Lavender
  • Marjoram
  • Nutmeg
  • OreganoOreganoOreganoOregano OreganoOreganoOreganoOreganoOregano
  • Pennyroyal
/* position list chunks side by side */
div.wrapper
{
  float: left;
  width: 10em;
}

/* clear float after lists */
br
{
  clear: left;
}


A single list wrapped with margin-left and negative margin-top

  • Aloe
  • BergamotBergamotBergamot Bergamot
  • Calendula
  • Damiana
  • Elderflower
  • Feverfew
  • Ginger
  • Hops
  • Iris
  • Juniper Juniper Juniper Juniper JuniperJuniper
  • Kava Kava
  • Lavender
  • Marjoram Marjoram Marjoram Marjoram Marjoram Marjoram
  • Nutmeg
  • Oregano
  • Penny Royal
/* separate the list from surrounding elements */
ol
{
  margin: 0 0 1em 2em;
  padding: 0;
}

ol li
{
  /* Stipulate the height of each item so that 
  vertical return = items * height */

  line-height: 1.2em;

  /* Clear the default margins & padding 
  so we can style the list from scratch */

  margin: 0;
  padding: 0;
}

/* If li position is left static, Internet 
Explorer disables hyperlinks in the list 
in all but the final column.

This rule will be processed only by 
Internet Explorer because only IE believes 
that there’s a level above HTML: */

* html ol li
{
	position: relative;
}

/* horizontal position of each column */

ol li.column1 { margin-left: 0em; }
ol li.column2 { margin-left: 10em; }
ol li.column3 { margin-left: 20em; }

/* Bring the first item of each column 
back up to the level of item 1.
Vertical return = items * height.
Here, 5 items * 1.2em line-height = 6em */

li.reset
{
  margin-top: -6em;
}


A single list styled into multiple columns

Recommended by David B but he says not supported by IE until IE10

  • apple
  • carpet
  • geography
  • mountain
  • nowhere
  • postage
  • ragged
  • toast