Skip to content

Instantly share code, notes, and snippets.

@marcosfreitas
Last active July 31, 2020 12:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosfreitas/7c66f61c4921cf474121 to your computer and use it in GitHub Desktop.
Save marcosfreitas/7c66f61c4921cf474121 to your computer and use it in GitHub Desktop.
Fixed Layout with Semantic UI
<!DOCTYPE HTML>
<html>
<head>
<!-- add the semantic assets -->
</head>
<body>
<style>
/**
* Semantic UI don't have a fixed grid system, the solution to build fixed layouts is use a grid inside a fixed container.
*/
.fixed.body {
width: 100%;
max-width: 1200px;
}
</style>
<section class="fixed body">
<div class="ui grid">
<div class="three column centered row">
<div class="wide column">
<p>#1 Column</p>
</div>
<div class="wide column">
<p>#2 Column</p>
</div>
<div class="wide column">
<p>#3 Column</p>
</div>
</div>
</div>
</section>
</body>
</html>
@sterkhedkar
Copy link

Did not work

@marcosfreitas
Copy link
Author

It's old and I think It's just for 1.x or 2.x versions

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