From IT Skills
Jump to: navigation, search

http://gridstylesheets.org/

знайшов в документатіон "Live Example" http://codepen.io/thegridgssdocs/pen/OPmdVL Hello from GSS

<section class="container" style="position: relative">
  <div class="content"></div>
</section>
<section class="container" id="section-two" style="position: relative">
  <div class="content"></div>
</section>

<style type="text/gss">
.container {
  top: == 0;
  left: == 0;

  .content {
    top: == ^top;
    bottom: == ^bottom;
    height: == 100;
    width: == 100;
  }
}
</style>
In this example, each element having container class will have its top and left properties constrained to zero. But since the containers have explicit position: relative set, they will push one another