• Hello,

    i really love the simplicity of your plugin and i just thought you maybe like to see my approche for a really simple css (sass) width calculation

    
    @media (min-width: 990px) { // should be customizable
      .content-column {
        float: left;
        padding-right: 20px; // should be customizable
    
        &.last-column {
          padding-right: 0;
        }
      }
    
      .one_half {
        width: calc(100% / 2);
      }
    
      .one_third {
        width: calc(100% / 3);
      }
    
      .one_fourth {
        width: calc(100% / 4);
      }
    
      .three_fourth {
        width: calc(100% / 4 * 3);
      }
    
      .one_fifth {
        width: calc(100% / 5);
      }
    
      .two_fifth {
        width: calc(100% / 5 * 2);
      }
    
      .three_fifth {
        width: calc(100% / 5 * 3);
      }
    
      .four_fifth {
        width: calc(100% / 5 * 4);
      }
    
      .one_sixth {
        width: calc(100% / 6);
      }
    }
    
  • The topic ‘Idea: Switch to css calc’ is closed to new replies.