List Grid

Overview

List Grid layout will allow you to create multi column and multi row layout using a combinatio of (a) unordered lists (i.e. - list item) and (b) either hashtag or css class at frontmatter. There are 3 different ways you can do so using MCL snippets i.e.

  1. Apply at the specific list block using hashtag. This is the recommended option.
  2. Apply at the frontmatter. This affects ALL unordered list in that particular note

Making it work in Live Preview

The column layout will only work on Reading View. If you want to make it work on Live Preview, there are a few options. You can encapsulate the list block in MCL's [blank-container] callout, or alternatively, using Custom Classes plugin, prepend the list block with any class e.g. (class: none)

Using hashtag i.e. #mcl/list-grid

Technically List Card is quite similar to List Grid but with extra customisation to make it card like. In order to enable it, place the hashtag anywhere in the top-level list items (preferably in the first bullet for easy identification). There are two options for List Card i.e.

If you have consecutive group of list that you actually meant to be a separate lists, ensure to properly "break" it by placing either a header, horizontal line or <br/> tag in between

Here's an example markdown:

- #### Core Work #mcl/list-grid
    - Main Goal 1
    - Main Goal 1
    - Main Goal 1
        - Collaboration with Jane
    - Main Goal 1
- #### Learning & System
    - Learning Goal 1
    - Initiative 1
    - Initiative 2
- #### Personal
    - Personal Goal 1
    - Personal Goal 2

The number of grid column can appear per row is subject to card's minimum width and note's width. Card's minimum width is adjustable via Style Settings plugin.

Using properties declaration

Using this approach, you will have to specify the css for the column type at the frontmatter (it must be located at the very top of your document, wrapped by two sets of 3 dashes i.e. ---, see example below for better understanding). MCL provides the following CSS classes

Here's an example markdown:

---
cssClass: two-column-grid-list
---

- #### Core Work
    - Main Goal 1
    - Main Goal 1
    - Main Goal 1
        - Collaboration with Jane
    - Main Goal 1
- #### Learning & System
    - Learning Goal 1
    - Initiative 1
    - Initiative 2
- #### Personal
    - Personal Goal 1
    - Personal Goal 2
There's no Markdown Attributes plugin approach

There are no Markdown Attributes approach due to limitation in specifying at the end of list block

Additional Controls

If you have Style Settings plugin installed, you may control the following aspects (go to Style Settings > Modular CSS Layout - Multi Column > List Grid and List Card)

Example

example of list grid


< List Column | Multi Column Home | Next: List Card >