Jump to content

Examples/Parameter: columns (example 1)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This list pages in category Fruit examples, arranged in 3 columns, with rowcolformat used to make the width 100%.

Note: This example uses a workaround; a div tag is used to wrap around the DPL3 statement, applying CSS column-count, to make the example function as described.


Code
<div class="optional-col-3" style="column-count: 3; "><!-- workaround start -->
{{#dpl:
|category     = Fruit examples
|columns      = 3              <!-- non-working -->
|rowcolformat = width=100%     <!-- non-working -->
|count        = 3
}}
</div><!-- workaround end -->
Result
Cookies help us deliver our services. By using our services, you agree to our use of cookies.