Display content to a reasonable maximum width.

container_open( [ bool $fluid = false, array $options = [] ] ) : string


$fluid bool Optional Container without maximum width.

$options array Optional Additional options.

Available options

Name Type Default Description
class string '' Class for wrapper.
attributes array [] Array of custom attributes.

Basic Usage

echo container_open();
// ...
echo container_close();

HTML output:

<div class="container">