We've updated our documenation to align with our other frameworks. Our new documenation will
live here and these pages will be removed.
Containers
Containers are a foundational layout element. Denali offers a choice between a basic container and a full container. Basic containers can be placed within full containers for added flexibility.
Denali’s layout components are built using flexbox to help you layout content with ease. Unfamiliar with flexbox? Read this guide before getting started.
Basic Container
Our basic container is a responsive container whose width automatically adjusts at each breakpoint. It can be implemented by using the class .container.
<divclass="container-full has-bg-blue-500 p-y-10 br-4">
This is a full container
</div>
Marginless
Both full and basic containers have default margins. On a full container these margins change according to the breakpoint. On a basic container the default margins are always set to auto. In both cases you can remove the margins by adding the .is-marginless modifier.
<divclass="container is-marginless has-bg-blue-500 p-10 br-4">
This is a marginless container
</div><br><divclass="container-full is-marginless has-bg-blue-500 p-y-10 br-4">
This is a marginless full container
</div>