Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Created December 8, 2020 08:45
Show Gist options
  • Save vanaf1979/caedbe162e39503c6ce3dd4f6833bf5b to your computer and use it in GitHub Desktop.
Save vanaf1979/caedbe162e39503c6ce3dd4f6833bf5b to your computer and use it in GitHub Desktop.
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>
@GSKang94
Copy link

Thank you

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