Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fluid html container with horizontal whitespace on mobile devices.
<div class="fluid-container">
[ I'm a fluid container ]
</div>
<style>
.fluid-container {
background: lightblue;
width: min(96%, 62.5rem);
margin: 0 auto;
}
</style>
@GSingh1994

This comment has been minimized.

Copy link

@GSingh1994 GSingh1994 commented Mar 23, 2021

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment